dsh-client-ui-skin-tianlight 2.2.2 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,6 +6,10 @@
6
6
  >
7
7
  > npm 包名 `dsh-client-ui-skin-tianlight`(v2.0.2 起;旧链接安装包名 `@dsh-external/dsh-client-ui-skin-tianlight`)· 布线行 `ui-skin-tianlight` · body 属性 `data-dsh-tianlight`
8
8
 
9
+ ## v2.2.3 · 参考图级透镜玻璃
10
+
11
+ 按作者提供的参考图再压一版:实时玻璃换成**运行时生成的径向透镜位移场**(中心不弯、边缘按半径平方放大/弯折),`feDisplacementMap` 直接作用在 backdrop 上;实时 blur 从 18–26px 降到 **2–3px**(暗色 6px),整面白色高光再降到 0.10,输入区顶部高光 0.08。暗色继续烟熏玻璃。只改浏览器半,`Ctrl+F5` 即可。详见 [RELEASE-NOTES-v2.2.3.md](RELEASE-NOTES-v2.2.3.md)。
12
+
9
13
  ## v2.2.2 · 清透玻璃(不是白玻璃)
10
14
 
11
15
  v2.2.1 还是保留了 `0.12` 的白色填充和面板 55% 混合,亮色天空下仍像白雾。这一版把玻璃改成**透镜**:亮色填充降到 `0.05`(实时 `0.04`),面板 `0.68` 起(实时 0.56),白色高光只在边缘(soft `0.08` / real `0.12` / frosted `0.16`,实时 `0.03`),并给侧栏/输入区/设置面板加上窄角度高光 + 右下冷色折射 + 1px 亮边。实时模式还加了 SVG `feDisplacementMap` 透镜:背后的壁纸会轻微弯曲,而不只是被模糊;不支持时自动退回普通 blur。暗色主题单独使用**烟熏玻璃**配方(不是浅色填充),修掉 Windows 暗色 + 亮壁纸下反而更白的问题。
@@ -528,6 +532,11 @@ v0.5.0 的 P0–P4 功能全部保留;这一版是增量补丁,同一份构
528
532
 
529
533
  ## 安装
530
534
 
535
+ > **安装/升级后「像没生效」,几乎都是同一件事:DSH 没有真正退出。**
536
+ > DSH Desktop 关掉窗口后仍驻留托盘,旧进程继续持有旧插件文件,新装的浏览器半也不会被加载。正确顺序是:
537
+ > **① 彻底退出 DSH(窗口关闭 + 托盘图标右键 → 退出)→ ② 任务管理器确认没有 `DeepSeek Harness.exe` → ③ 重新打开 DSH → ④ 页面按 `Ctrl+F5` 强制刷新。**
538
+ > 只按 `Ctrl+F5` 而不退进程,看到的仍是旧构建;改动宿主半(`lib/index.js` / `HOST_API`)时更是必须整进程重启。后面每一节的「生效方式」都以这条前提为准。
539
+
531
540
  本皮肤是**标准 DSH bundle**:`package.json` 的 `dsh.bundle.patch` 指向包内自带的 `cordis.patch.yml`,由它插入 `ui-skin-tianlight` 这一行;浏览器半由 `dsh.client` 提供。**只安装这一个包即可**,旧教程里的第二个 enable bundle(`@local/dsh-enable-tianlight`)已废弃,不要再装。
532
541
 
533
542
  ### 从 npm 安装(推荐,一条命令)
@@ -566,7 +575,7 @@ npm 包:**`dsh-client-ui-skin-tianlight`**(公开 registry,预构建、免
566
575
  1. 把本仓库目录(或 Release 解包后的 `dsh-client-ui-skin-tianlight/` 目录)放到任意位置,建议用纯 ASCII 路径。
567
576
  2. 在 DSH Desktop 的**插件管理器**里选择「安装本地目录 / Install from local folder」,指向该目录。Desktop 的 profile(本版为 `desktop`)由 Electron 管理,**不要**手动编辑 profile 目录下的 `package.json` / `cordis.patch.yml`;安装器会以 `link:` 依赖引用本包,并且只登记 `dsh-client-ui-skin-tianlight` 这一条 bundle。
568
577
  3. 确认 `ui-skin-tianlight` 这一行处于 **enabled** 状态。该行由本包的 `cordis.patch.yml` 自带,profile 的 `cordis.patch.yml` 不需要、也不应该再手写同 id 的行(重复插入会重复挂载插件)。
569
- 4. **重启 DSH Desktop**(v0.5.0 宿主半新增路由,必须重启一次)。之后只改浏览器半(`src/` → `lib/client.js`)时 Ctrl+F5 刷新即可,不用重启。
578
+ 4. **完全退出 DSH Desktop(含托盘图标)再重新打开**(v0.5.0 宿主半新增路由,必须重启一次;托盘没退等于没重启)。打开页面后按 **Ctrl+F5** 强制刷新,才会加载新的浏览器半。之后只改浏览器半(`src/` → `lib/client.js`)时 Ctrl+F5 刷新即可,不用重启。
570
579
 
571
580
  > **关键前提**:机器级 `$DSH_HOME/cordis.patch.yml`(Windows 默认 `%USERPROFILE%\.dsh\cordis.patch.yml`)的优先级**高于** bundle 自带的 patch。如果里面残留旧 skin-manager 生成的 `ui-skin-tianlight` + `disabled: true`,行的 enabled 会被覆盖、皮肤静默不出现——删掉该行再重启。处理见下方「故障排查」第 1 条。
572
581
 
@@ -622,6 +631,15 @@ $DSH_HOME/profiles/<profile>/tianlight/
622
631
 
623
632
  ## 故障排查
624
633
 
634
+ **最常见:装完/升级完「像没生效」。** 先确认 DSH 真的退干净了:关闭窗口后它仍在托盘运行,旧进程会让新插件不加载,表现就是皮肤不出现、玻璃没变化、版本指纹还是旧版号。托盘图标右键 →「退出」→ 任务管理器确认没有 `DeepSeek Harness.exe` → 重开 DSH → 页面按 **Ctrl+F5**。缺任何一步都可能是旧构建。判断依据(角色中枢 → 自检/反馈里的指纹、或 DevTools Console):
635
+
636
+ ```js
637
+ __dshTianlightInstance.glass() // { depth, effective }:当前玻璃档位与实际生效档
638
+ __dshTianlightInstance.features // 当前宿主实际渲染的钩子层(getter,直接读,不加括号)
639
+ fetch('/skin-tianlight/_fingerprint').then(r => r.json())
640
+ // → { version, commit, clientSha256, hostApi, dshVersion, install };与 build-manifest.json 对照
641
+ ```
642
+
625
643
  ### 1. 皮肤不出现,`ui-skin-tianlight` 被禁用(home patch 覆盖)
626
644
 
627
645
  机器级 `$DSH_HOME/cordis.patch.yml`(Windows 默认 `%USERPROFILE%\.dsh\cordis.patch.yml`)的优先级高于 bundle 自带的 patch。检查其中是否有一条旧 skin-manager 生成的:
@@ -655,6 +673,19 @@ Windows 开启「减少动态效果 / Reduce motion」后,皮肤省电模式
655
673
 
656
674
  ## 壁纸
657
675
 
676
+ ### 自带壁纸 ≠ 推荐天空壁纸
677
+
678
+ 两件事分开说,避免装完觉得「货不对板」:
679
+
680
+ | | 内容 | 怎么来 |
681
+ |---|---|---|
682
+ | **自带壁纸**(默认) | `assets/bg-4k.mp4`:**紫调人物循环**(3840×2160,H.264)。它是随包分发的演示素材,不是「新海诚式天空」那张图 | 装好即用,不需要操作 |
683
+ | **推荐天空壁纸** | 新海诚式白日天空(青蓝/暖光、云层与光斑)是产品的视觉主张,但不是随包素材 | 壁纸面板 →「URL 地址」粘贴天空视频/图片直链;或把天空视频放进 `assets/uploads/`(面板「上传壁纸」)或 `assets/` 后刷新 |
684
+
685
+ - 皮肤会在壁纸面板 ①「来源」下直接显示这条说明(`data-tl-wall-bundle-note`),不需要翻文档。
686
+ - 系统**不内置**天空素材是版权与体积决定(`assets/` 已随包 16MB 人物循环);想换成天空,最省事的是自备一段 1080p60 天空视频,命名 `bg-main.mp4` 放进 `assets/`——自动选择会优先它(HEVC/H.264 均可,不支持的编码会自动跳过)。
687
+ - 文档/宣传里出现的「新海诚式天光」指**配色与玻璃质感**(青蓝天光、半透明面板、日光透射),不指具体某张壁纸;首次安装看到紫调人物循环属正常默认。
688
+
658
689
  ### Wallpaper Engine 库(v0.6.0,自动检测)
659
690
 
660
691
  装了 Wallpaper Engine 就直接用,**不需要填任何目录**:
@@ -692,7 +723,7 @@ assets/
692
723
 
693
724
  | 项 | 说明 |
694
725
  |---|---|
695
- | 支持范围 | **DSH 0.2.0 / 0.2.1 / 0.2.2**(含 rc/alpha:`>=0.2.0-rc.1 <0.2.1-0 \|\| >=0.2.1-0 <0.2.2-0 \|\| >=0.2.2-0 <0.3.0-0`),一份构建通用;0.3.x 起被 DSH 安装/启动门禁拦下;矩阵与源码证据见 [docs/COMPATIBILITY.md](docs/COMPATIBILITY.md) |
726
+ | 支持范围 | **DSH 0.2.0 / 0.2.1 / 0.2.2**(含 rc/alpha:`>=0.2.0-rc.1 <0.2.1-0 \|\| >=0.2.1-0 <0.2.2-0 \|\| >=0.2.2-0 <0.3.0-0`),一份构建通用;**0.3.x 暂不支持**(已放弃预适配:0.3.0 尚未发布,没在真实 0.3 上验证过的范围不放开,装 0.3 会被 DSH 门禁拦下)。0.3 的差异表/检查清单/预警工具保留在 [docs/COMPAT-0.3.0.md](docs/COMPAT-0.3.0.md),等 0.3.0 真发布再按清单验证后放开。矩阵与源码证据见 [docs/COMPATIBILITY.md](docs/COMPATIBILITY.md) |
696
727
  | 测试版本 | 真实运行时实测:`0.2.0-rc.2`、`0.2.1-rc.5`(npm)、`0.2.2-rc.1`(npm + 本机 Desktop 实机);`0.2.1-rc.3` Desktop 为 v0.3.0 基线 |
697
728
  | v0.5.0 验证状态 | 已整合 git `72d72fe`:724,684 字符 / 21 片段,静态链全 PASS(test 61/61);运行时矩阵 **4/4 运行时 PASS,323/323 断言,0 console error**(web 80/80 ×3 + Desktop 83/83),旧宿主 × 新客户端降级 **17/17 PASS**;详见 [docs/RELEASE-0.5.0.md](docs/RELEASE-0.5.0.md) §4、残余风险 §9 |
698
729
  | v0.5.1 验证状态 | 已整合 git `7282d94`:768,962 字符 / 21 片段,静态链全 PASS(test 61/61);运行时矩阵 **4/4 运行时 PASS,387/387 断言**(web 96/96 ×3 + Desktop 99/99;0 failed / 0 skipped / 0 console error),C4 默认关闭态零外部请求(0 open-meteo),旧宿主降级 17/17 PASS;详见 [docs/RELEASE-0.5.1.md](docs/RELEASE-0.5.1.md) §8 |
package/build-info.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "product": "dsh-client-ui-skin-tianlight",
4
- "version": "2.2.2",
5
- "commit": "0dfe6d6dd951030ca62d1c3889907be5e8fdfca9",
6
- "builtAt": "2026-11-15T23:07:42+08:00",
4
+ "version": "2.2.4",
5
+ "commit": "722ca3f1402956a313334da519ec23c8603e4f48",
6
+ "builtAt": "2026-11-16T11:08:16+08:00",
7
7
  "source": "pack"
8
8
  }
package/lib/client.js CHANGED
@@ -1,10 +1,31 @@
1
- window.__ModuleLoader__.load({
2
- id: "dsh-client-ui-skin-tianlight",
3
- factory: (require) => {
4
- var module = { exports: {} };
5
- var exports = module.exports;
6
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
-
1
+ (function () {
2
+ /**
3
+ * Fail-soft at the one point the skin cannot wrap in try/catch: the loader call is
4
+ * evaluated before any factory body runs, so a renamed or removed loader contract
5
+ * would throw an uncaught error owned by nobody. The guard reports the exact missing
6
+ * contract and returns, which keeps the rest of the page (and every other plugin's
7
+ * module) intact. It cannot recover a missing loader — the module simply cannot be
8
+ * registered — but it turns "skin silently absent + red console noise" into one
9
+ * named line. `tools/upgrade-check.mjs` checks the same contract against a new DSH
10
+ * build before it ships.
11
+ */
12
+ var loader = typeof window === "object" && window !== null ? window.__ModuleLoader__ : null;
13
+ if (loader === null || typeof loader !== "object" || typeof loader.load !== "function") {
14
+ try {
15
+ console.warn(
16
+ "[ui-skin-tianlight] client module loader contract missing: expected window.__ModuleLoader__.load({ id, factory }) on this DSH build; the skin is not registered.",
17
+ );
18
+ } catch {
19
+ // a page without a console is still a page
20
+ }
21
+ return;
22
+ }
23
+ loader.load({
24
+ id: "dsh-client-ui-skin-tianlight",
25
+ factory: (require) => {
26
+ var module = { exports: {} };
27
+ var exports = module.exports;
28
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
29
  //#region constants
9
30
  /** Asset prefix owned by this skin's host half (`lib/index.js`). */
10
31
  const ASSET_BASE = "/skin-tianlight";
@@ -34,7 +55,7 @@ window.__ModuleLoader__.load({
34
55
  * must equal `package.json` `version`; tools/test.mjs fails the chain when the
35
56
  * two drift (the 2.1.0-2.1.3 builds printed a stale "2.0.4").
36
57
  */
37
- const TL_BUILD_VERSION = "2.2.2";
58
+ const TL_BUILD_VERSION = "2.2.4";
38
59
 
39
60
  /**
40
61
  * Host identity last reported by `_engines`: `build` is the host's
@@ -1422,6 +1443,8 @@ window.__ModuleLoader__.load({
1422
1443
  return "0";
1423
1444
  }
1424
1445
 
1446
+ //#endregion
1447
+ //#region schema
1425
1448
  const TL5_MIGRATIONS = [
1426
1449
  { key: "tianlight.wallpaper", repair: repairWallpaperSetting },
1427
1450
  { key: "tianlight.playback", repair: repairPlaybackSetting },
@@ -2903,6 +2926,8 @@ window.__ModuleLoader__.load({
2903
2926
  return body;
2904
2927
  }
2905
2928
 
2929
+ //#endregion
2930
+ //#region schema
2906
2931
  /* ================= E4:工程面板分区 =================
2907
2932
  * 只注册一个分区(id "engineering",order 700)。根节点沿用壁纸面板的
2908
2933
  * <details class="tl-wall-group"> + groupSummary 视觉语言,内容全部只读或
@@ -4093,7 +4118,10 @@ body[data-dsh-tianlight] [data-tl-rheo][data-tl-drag] [data-tl-rheo-label] {
4093
4118
 
4094
4119
 
4095
4120
 
4096
- /* ---- raise the application above the wallpaper ---- */
4121
+ `;
4122
+ //#endregion
4123
+ //#region stylesheet
4124
+ const CSS_SHELL = String.raw`/* ---- raise the application above the wallpaper ---- */
4097
4125
  body[data-dsh-tianlight] [id='root'] {
4098
4126
  position: relative !important;
4099
4127
  z-index: 1 !important;
@@ -5400,7 +5428,10 @@ body[data-dsh-tianlight] :focus-visible {
5400
5428
  outline-color: var(--tl-accent) !important;
5401
5429
  }
5402
5430
 
5403
- /* ---- companion: a mint chibi cat that lives on top of the workbench ---- */
5431
+ `;
5432
+ //#endregion
5433
+ //#region stylesheet
5434
+ const CSS_GLASS = String.raw`/* ---- companion: a mint chibi cat that lives on top of the workbench ---- */
5404
5435
  body[data-dsh-tianlight] [data-tl-cat] {
5405
5436
  position: fixed;
5406
5437
  z-index: 95;
@@ -5659,7 +5690,7 @@ body[data-dsh-tianlight] {
5659
5690
  /* v2.2.0 live mode: the only place the stylesheet re-samples the wallpaper in
5660
5691
  real time. These are the plain defaults; each depth and the dark theme tune
5661
5692
  them below, so the live look still follows the selected depth. */
5662
- --tl-liquid-live-blur: 14px;
5693
+ --tl-liquid-live-blur: 2px;
5663
5694
  --tl-liquid-live-sat: 1.9;
5664
5695
  --tl-liquid-live-bright: 0.92;
5665
5696
  --tl-liquid-live-contrast: 1.1;
@@ -5712,7 +5743,7 @@ body[data-dsh-tianlight][data-tl-glass-effective="soft"] {
5712
5743
  --tl-liquid-sheen: 0.18;
5713
5744
  --tl-liquid-grain: 180px;
5714
5745
  --tl-liquid-rim: 0.30;
5715
- --tl-liquid-live-blur: 13px;
5746
+ --tl-liquid-live-blur: 2px;
5716
5747
  --tl-liquid-live-sat: 1.8;
5717
5748
  --tl-liquid-live-bright: 0.93;
5718
5749
  --tl-liquid-live-contrast: 1.1;
@@ -5727,7 +5758,7 @@ body[data-dsh-tianlight][data-tl-glass-effective="real"] {
5727
5758
  --tl-liquid-sheen: 0.35;
5728
5759
  --tl-liquid-grain: 140px;
5729
5760
  --tl-liquid-rim: 0.36;
5730
- --tl-liquid-live-blur: 18px;
5761
+ --tl-liquid-live-blur: 3px;
5731
5762
  --tl-liquid-live-sat: 1.95;
5732
5763
  --tl-liquid-live-bright: 0.91;
5733
5764
  --tl-liquid-live-contrast: 1.1;
@@ -5742,7 +5773,7 @@ body[data-dsh-tianlight][data-tl-glass-effective="frosted"] {
5742
5773
  --tl-liquid-sheen: 0.08;
5743
5774
  --tl-liquid-grain: 110px;
5744
5775
  --tl-liquid-rim: 0.40;
5745
- --tl-liquid-live-blur: 24px;
5776
+ --tl-liquid-live-blur: 6px;
5746
5777
  --tl-liquid-live-sat: 1.1;
5747
5778
  --tl-liquid-live-bright: 0.98;
5748
5779
  --tl-liquid-live-contrast: 1.04;
@@ -5859,7 +5890,7 @@ body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-eff
5859
5890
  refraction tint at the bottom-right, then the grain surface. The 1px bright
5860
5891
  right edge is what makes it read as a glass pane. */
5861
5892
  background-image:
5862
- linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 26%),
5893
+ linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 26%),
5863
5894
  radial-gradient(120% 100% at 100% 100%, rgba(70, 150, 240, 0.10) 0%, rgba(70, 150, 240, 0) 62%),
5864
5895
  var(--tl-liquid-surface) !important;
5865
5896
  background-size: auto, auto, var(--tl-liquid-surface-size);
@@ -5873,7 +5904,7 @@ body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-eff
5873
5904
  }
5874
5905
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) :is([data-tl-settings], [data-tl-wall]) {
5875
5906
  background-image:
5876
- linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 22%),
5907
+ linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 22%),
5877
5908
  var(--tl-liquid-surface) !important;
5878
5909
  background-size: auto, var(--tl-liquid-surface-size);
5879
5910
  border-color: var(--tl-glass-line);
@@ -5891,7 +5922,7 @@ body[data-dsh-tianlight][data-ds-dark-theme]:is([data-tl-glass-effective="soft"]
5891
5922
  }
5892
5923
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) [data-tl-hub] [data-tl-hub-panel] {
5893
5924
  background-image:
5894
- linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 22%),
5925
+ linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 22%),
5895
5926
  var(--tl-liquid-surface);
5896
5927
  background-size: auto, var(--tl-liquid-surface-size);
5897
5928
  border-color: var(--tl-glass-line);
@@ -5945,8 +5976,8 @@ body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-eff
5945
5976
  layer ownership stays untouched. */
5946
5977
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) [data-tl-composer] {
5947
5978
  background-image:
5948
- linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 18%),
5949
- radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 48%),
5979
+ linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 18%),
5980
+ radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 48%),
5950
5981
  var(--tl-liquid-surface) !important;
5951
5982
  background-size: auto, auto, var(--tl-liquid-surface-size);
5952
5983
  border-color: rgba(255, 255, 255, calc(var(--tl-liquid-hi) + 0.30)) !important;
@@ -6092,6 +6123,7 @@ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"]
6092
6123
  --tl-liquid-noise: 0.02;
6093
6124
  --tl-liquid-sheen: 0.16;
6094
6125
  --tl-liquid-rim: 0.36;
6126
+ --tl-liquid-live-blur: 6px;
6095
6127
  --tl-liquid-live-bright: 0.72;
6096
6128
  --tl-liquid-live-sat: 1.35;
6097
6129
  --tl-liquid-live-contrast: 1.06;
@@ -6126,8 +6158,8 @@ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"]
6126
6158
  /* Composer keeps its ::before ownership (a filter on the card itself would
6127
6159
  re-anchor its non-portaled tooltips); live only makes that one layer real. */
6128
6160
  body[data-dsh-tianlight][data-tl-glass-live-effective="on"] [data-tl-composer]::before {
6129
- -webkit-backdrop-filter: blur(max(var(--tl-glass-blur), var(--tl-liquid-blur), var(--tl-liquid-live-blur))) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6130
- backdrop-filter: blur(max(var(--tl-glass-blur), var(--tl-liquid-blur), var(--tl-liquid-live-blur))) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6161
+ -webkit-backdrop-filter: blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6162
+ backdrop-filter: blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6131
6163
  }
6132
6164
  /* Small floating surfaces upgrade their existing bounded blur; none of them
6133
6165
  gains a filter it did not already carry at a non-off depth. */
@@ -6144,8 +6176,8 @@ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"]
6144
6176
  backdrop-filter: url(#tl-glass-lens-filter) blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6145
6177
  }
6146
6178
  body[data-dsh-tianlight][data-tl-glass-lens-support="1"][data-tl-glass-live-effective="on"] [data-tl-composer]::before {
6147
- -webkit-backdrop-filter: url(#tl-glass-lens-filter) blur(max(var(--tl-glass-blur), var(--tl-liquid-blur), var(--tl-liquid-live-blur))) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6148
- backdrop-filter: url(#tl-glass-lens-filter) blur(max(var(--tl-glass-blur), var(--tl-liquid-blur), var(--tl-liquid-live-blur))) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6179
+ -webkit-backdrop-filter: url(#tl-glass-lens-filter) blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6180
+ backdrop-filter: url(#tl-glass-lens-filter) blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6149
6181
  }
6150
6182
  /* The role-hub preview is the control's own feedback: live makes it clear at a
6151
6183
  glance, including a tiny moving-wallpaper feel from the real backdrop. */
@@ -6158,7 +6190,10 @@ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"]
6158
6190
  }
6159
6191
  }
6160
6192
 
6161
- /* Role-hub liquid-glass preview: a compact swatch that reflects the current depth
6193
+ `;
6194
+ //#endregion
6195
+ //#region stylesheet
6196
+ const CSS_HUB = String.raw`/* Role-hub liquid-glass preview: a compact swatch that reflects the current depth
6162
6197
  even before/without a wallpaper, so the control always has visible feedback. */
6163
6198
  body[data-dsh-tianlight] [data-tl-hub] [data-tl-glass-preview] {
6164
6199
  height: 34px;
@@ -7409,7 +7444,7 @@ body[data-dsh-tianlight] [data-tl-hub] [data-tl-hub-splash-card] {
7409
7444
  }
7410
7445
  `;
7411
7446
 
7412
- /** Injected once per page; every rule is scoped to the skin's body attribute. */
7447
+ /** Injected once per page; every rule is scoped to the skin's body attribute. */
7413
7448
  function installStyles() {
7414
7449
  if (typeof document === "undefined") return () => {};
7415
7450
  const existing = document.querySelector(
@@ -7421,14 +7456,13 @@ body[data-dsh-tianlight] [data-tl-hub] [data-tl-hub-splash-card] {
7421
7456
  tag.dataset.pluginCss = CSS_TAG_ID;
7422
7457
  // The base sheet plus every feature fragment's registered block (v0.5.0).
7423
7458
  // One <style> keeps teardown and the audit's scope checks unambiguous.
7424
- tag.textContent = CSS + "\n" + tl5CssText();
7459
+ tag.textContent = CSS + CSS_SHELL + CSS_GLASS + CSS_HUB + "\n" + tl5CssText();
7425
7460
  document.head.appendChild(tag);
7426
7461
  return () => {
7427
7462
  tag.remove();
7428
7463
  };
7429
7464
  }
7430
7465
  //#endregion
7431
-
7432
7466
  //#region wallpaper
7433
7467
  // v1.6.2: the old fixed top-left corner artwork (a small dawn-burst sun) was
7434
7468
  // removed on user feedback: it lived on the scene layer, so it showed on every
@@ -9896,6 +9930,8 @@ body[data-dsh-tianlight] [data-tl-hub] [data-tl-hub-splash-card] {
9896
9930
  return ASSET_BASE + "/cat.png";
9897
9931
  }
9898
9932
 
9933
+ //#endregion
9934
+ //#region wallpaper
9899
9935
  /**
9900
9936
  * Builds the wallpaper stack beneath the application. Returns a disposer
9901
9937
  * that removes every node and listener this activation created.
@@ -11936,7 +11972,6 @@ body[data-dsh-tianlight] [data-tl-hub] [data-tl-hub-splash-card] {
11936
11972
  };
11937
11973
  }
11938
11974
  //#endregion
11939
-
11940
11975
  //#region wallpaper engine extras
11941
11976
  /**
11942
11977
  * A 期壁纸引擎的客户端扩展(由 wallpaper-engine 工作流实现):
@@ -17666,6 +17701,8 @@ body[data-dsh-tianlight] [data-tl-group="context"] .tl-fx-hint {
17666
17701
  }
17667
17702
  }
17668
17703
 
17704
+ //#endregion
17705
+ //#region companion
17669
17706
  /**
17670
17707
  * The desktop companion: draggable, proximity-aware, with a small mood
17671
17708
  * model and a menu of interactions. Everything it owns is torn down by the
@@ -19305,6 +19342,8 @@ body[data-dsh-tianlight] [data-tl-group="context"] .tl-fx-hint {
19305
19342
  * Validate one inbound duty action. Fail-closed by design: an adapter is
19306
19343
  * third-party code, so an unknown shape must never reach the pet DOM.
19307
19344
  */
19345
+ //#endregion
19346
+ //#region companion
19308
19347
  function normalizeDutyAction(raw) {
19309
19348
  if (raw === null || typeof raw !== "object" || typeof raw.type !== "string") return null;
19310
19349
  if (raw.type === "clear") return { type: "clear" };
@@ -19519,7 +19558,6 @@ body[data-dsh-tianlight] [data-tl-group="context"] .tl-fx-hint {
19519
19558
  }
19520
19559
  }
19521
19560
  //#endregion
19522
-
19523
19561
  //#region life rhythm
19524
19562
  /**
19525
19563
  * v1.0.0 character life engine: "when may the character speak first?"
@@ -21382,6 +21420,8 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
21382
21420
  // the explicit consent token through the role hub), never overrides a user
21383
21421
  // adapter, and always falls back to the local brain on failure.
21384
21422
 
21423
+ //#endregion
21424
+ //#region pet brain
21385
21425
  /** Normalize any adapter/host error code to the stable route vocabulary. */
21386
21426
  function petNormalizeLlmCode(value) {
21387
21427
  try {
@@ -22525,6 +22565,8 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
22525
22565
  }
22526
22566
  }
22527
22567
 
22568
+ //#endregion
22569
+ //#region pet brain
22528
22570
  // ---- optional LLM adapter ----------------------------------------------
22529
22571
  function petNormalizeAdapter(candidate) {
22530
22572
  try {
@@ -23229,6 +23271,8 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
23229
23271
  }
23230
23272
  }
23231
23273
 
23274
+ //#endregion
23275
+ //#region pet brain
23232
23276
  // ---- v1.6.8 private thinking engine --------------------------------------
23233
23277
  function petMindFallbackState() {
23234
23278
  return {
@@ -25436,7 +25480,7 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25436
25480
  }
25437
25481
  //#endregion
25438
25482
 
25439
-  //#region glass opacity
25483
+ //#region glass opacity
25440
25484
  /**
25441
25485
  * One multiplier for every glass surface. 1 = the designed look; below makes
25442
25486
  * surfaces more see-through, above makes them more solid. Expressed as a
@@ -25500,7 +25544,18 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25500
25544
  */
25501
25545
  const GLASS_DEPTH_KEY = "tianlight.glassDepth";
25502
25546
  const GLASS_DEPTHS = ["off", "frosted", "soft", "real"];
25503
- const GLASS_DEPTH_DEFAULT = "soft";
25547
+ /**
25548
+ * v2.2.4: the MISSING-KEY default is `off`, identical to the value the skin writes
25549
+ * on a fresh install (`TL5_DEFAULT_APPEARANCE_JSON` in src/12-schema.js carries
25550
+ * `"tianlight.glassDepth":"off"`). The two used to disagree — `soft` here, `off`
25551
+ * there — so a first-run user saw no glass while a cleared key rendered the soft
25552
+ * recipe, and neither state matched the release notes.
25553
+ *
25554
+ * Shipping quiet is deliberate: real-time glass pauses on low battery and at
25555
+ * 15fps, so the product promise is "liquid glass is available", not "liquid glass
25556
+ * is forced on". The role hub's glass card carries the one-line opt-in hint.
25557
+ */
25558
+ const GLASS_DEPTH_DEFAULT = "off";
25504
25559
  let glassDepthController = null;
25505
25560
  /**
25506
25561
  * v2.2.0 "live" mode. The depth presets above are a STATIC veil: they look like
@@ -25584,6 +25639,46 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25584
25639
  * headless). The node is created only while live sampling is effective and is
25585
25640
  * removed again otherwise, so the default path never carries the filter.
25586
25641
  */
25642
+ /**
25643
+ * A radial vector field: R/G encode the horizontal/vertical displacement, with
25644
+ * zero offset in the centre and a strong outward bend near the rim. `feDisplacementMap`
25645
+ * on the backdrop then behaves like a convex lens instead of a noisy warp.
25646
+ * Generated at runtime so the package does not carry a big base64 blob.
25647
+ */
25648
+ let glassLensMap = "";
25649
+ function lensMapDataUrl() {
25650
+ if (glassLensMap !== "") return glassLensMap;
25651
+ try {
25652
+ const size = 256;
25653
+ const canvas = document.createElement("canvas");
25654
+ canvas.width = size;
25655
+ canvas.height = size;
25656
+ const context = typeof canvas.getContext === "function" ? canvas.getContext("2d") : null;
25657
+ if (context === null) return "";
25658
+ const image = context.createImageData(size, size);
25659
+ const data = image.data;
25660
+ for (let y = 0; y < size; y += 1) {
25661
+ const ny = (y / (size - 1)) * 2 - 1;
25662
+ for (let x = 0; x < size; x += 1) {
25663
+ const nx = (x / (size - 1)) * 2 - 1;
25664
+ const radius = Math.min(1, Math.sqrt(nx * nx + ny * ny));
25665
+ const bend = Math.pow(radius, 2.2);
25666
+ const index = (y * size + x) * 4;
25667
+ data[index] = Math.max(0, Math.min(255, Math.round(128 + 127 * nx * bend)));
25668
+ data[index + 1] = Math.max(0, Math.min(255, Math.round(128 + 127 * ny * bend)));
25669
+ data[index + 2] = 128;
25670
+ data[index + 3] = 255;
25671
+ }
25672
+ }
25673
+ context.putImageData(image, 0, 0);
25674
+ glassLensMap = canvas.toDataURL("image/png");
25675
+ return glassLensMap;
25676
+ } catch (error) {
25677
+ note("glass:lens-map", error);
25678
+ return "";
25679
+ }
25680
+ }
25681
+
25587
25682
  function ensureGlassLens() {
25588
25683
  try {
25589
25684
  if (glassLensNode !== null && glassLensNode.isConnected === true) return glassLensNode;
@@ -25594,6 +25689,8 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25594
25689
  glassLensNode = existing;
25595
25690
  return glassLensNode;
25596
25691
  }
25692
+ const map = lensMapDataUrl();
25693
+ if (map === "") return null;
25597
25694
  const ns = "http://www.w3.org/2000/svg";
25598
25695
  const svg = document.createElementNS(ns, "svg");
25599
25696
  svg.setAttribute("id", GLASS_LENS_ID);
@@ -25605,29 +25702,26 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25605
25702
  const defs = document.createElementNS(ns, "defs");
25606
25703
  const filter = document.createElementNS(ns, "filter");
25607
25704
  filter.setAttribute("id", "tl-glass-lens-filter");
25608
- filter.setAttribute("x", "-15%");
25609
- filter.setAttribute("y", "-15%");
25610
- filter.setAttribute("width", "130%");
25611
- filter.setAttribute("height", "130%");
25705
+ filter.setAttribute("x", "-10%");
25706
+ filter.setAttribute("y", "-10%");
25707
+ filter.setAttribute("width", "120%");
25708
+ filter.setAttribute("height", "120%");
25612
25709
  filter.setAttribute("color-interpolation-filters", "sRGB");
25613
- const turbulence = document.createElementNS(ns, "feTurbulence");
25614
- turbulence.setAttribute("type", "fractalNoise");
25615
- turbulence.setAttribute("baseFrequency", "0.01 0.016");
25616
- turbulence.setAttribute("numOctaves", "1");
25617
- turbulence.setAttribute("seed", "7");
25618
- turbulence.setAttribute("result", "lensNoise");
25619
- const soften = document.createElementNS(ns, "feGaussianBlur");
25620
- soften.setAttribute("in", "lensNoise");
25621
- soften.setAttribute("stdDeviation", "1");
25622
- soften.setAttribute("result", "lensNoiseSoft");
25710
+ const mapImage = document.createElementNS(ns, "feImage");
25711
+ mapImage.setAttribute("href", map);
25712
+ mapImage.setAttribute("x", "0");
25713
+ mapImage.setAttribute("y", "0");
25714
+ mapImage.setAttribute("width", "100%");
25715
+ mapImage.setAttribute("height", "100%");
25716
+ mapImage.setAttribute("preserveAspectRatio", "none");
25717
+ mapImage.setAttribute("result", "lensMap");
25623
25718
  const displace = document.createElementNS(ns, "feDisplacementMap");
25624
25719
  displace.setAttribute("in", "SourceGraphic");
25625
- displace.setAttribute("in2", "lensNoiseSoft");
25626
- displace.setAttribute("scale", "26");
25720
+ displace.setAttribute("in2", "lensMap");
25721
+ displace.setAttribute("scale", "56");
25627
25722
  displace.setAttribute("xChannelSelector", "R");
25628
25723
  displace.setAttribute("yChannelSelector", "G");
25629
- filter.appendChild(turbulence);
25630
- filter.appendChild(soften);
25724
+ filter.appendChild(mapImage);
25631
25725
  filter.appendChild(displace);
25632
25726
  defs.appendChild(filter);
25633
25727
  svg.appendChild(defs);
@@ -27233,6 +27327,8 @@ body[data-dsh-tianlight][data-tl-legibility="boost"] [data-tl-font-panel] {
27233
27327
  const SPLASH_FILM_CSS = "#film {\n --ink: #EAF2FF;\n --cyan: #7FE2FF;\n --gold: #FFD696;\n --sans: \"Segoe UI Variable Text\", \"Segoe UI\", \"Microsoft YaHei UI\", \"Microsoft YaHei\", \"PingFang SC\", system-ui, sans-serif;\n --serif: \"Source Han Serif SC Heavy\", \"Noto Serif SC\", \"STZhongsong\", \"SimSun\", serif;\n position: fixed; inset: 0; overflow: hidden; background: #000;\n color: var(--ink);\n font-family: var(--sans);\n -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;\n text-rendering: geometricPrecision;\n user-select: none; -webkit-user-select: none;\n}\n#film * { box-sizing: border-box; }\n#film button { font: inherit; }\n#film .controls { display: none !important; }\n#film .debug-label { display: none !important; }\n#film .title-copy { transform-origin: 0 0; }\n#film { position: fixed; inset: 0; overflow: hidden; background: #000; }\n#film .canvas { position: absolute; inset: 0; z-index: 10; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 300ms linear; }\n#film .canvas.on { opacity: 1; }\n#film .subtitle { position: absolute; left: 8.5%; bottom: 30%; z-index: 22;\n font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.4;\n letter-spacing: .12em; color: rgba(255,255,255,.72);\n text-shadow: 0 1px 22px rgba(0,0,0,.45); opacity: 0;\n will-change: opacity; pointer-events: none; }\n#film .letterbox { position: absolute; inset: 0; z-index: 40; pointer-events: none; }\n#film .letterbox .bar { position: absolute; left: 0; right: 0; height: 0; background: #000; will-change: transform; }\n#film .letterbox .bar.top { top: 0; }\n#film .letterbox .bar.bottom { bottom: 0; }\n#film .letterbox .bar::after { content: \"\"; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }\n#film .letterbox .bar.top::after { bottom: 0; }\n#film .letterbox .bar.bottom::after { top: 0; }\n#film .controls { position: absolute; right: 26px; bottom: 24px; z-index: 60;\n display: flex; align-items: center; gap: 8px; padding: 7px;\n border-radius: 999px; border: 1px solid rgba(255,255,255,.13);\n background: rgba(5,8,15,.38);\n -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);\n box-shadow: 0 10px 35px rgba(0,0,0,.2); opacity: .45; transition: opacity 220ms ease; }\n#film .controls:hover, #film .controls:focus-within { opacity: 1; }\n#film .controls .controls button:hover, #film .controls button:focus-visible { background: rgba(255,255,255,.1); color: #fff; outline: none; }\n#film .skip-hint { position: absolute; right: 30px; bottom: 74px; z-index: 59;\n font-size: 11px; letter-spacing: .10em; color: rgba(255,255,255,.62);\n text-shadow: 0 1px 10px rgba(0,0,0,.3); opacity: 0; pointer-events: none; will-change: opacity; }\n#film .skip-veil { position: absolute; inset: 0; z-index: 45; background: #03050B; opacity: 0; pointer-events: none; }\n#film .debug-label { position: absolute; left: 26px; top: 22px; z-index: 61; display: none; padding: 6px 9px; border-radius: 6px; background: rgba(0,0,0,.5); color: rgba(255,255,255,.7); font: 10px/1.4 ui-monospace, monospace; pointer-events: none; }\n#film .debug .debug-label { display: block; }\n#film .simple-veil { position: absolute; inset: 0; z-index: 50; display: none; background: #03050B; pointer-events: none; }\n#film[data-state=\"simple\"] .simple-veil { display: block; }\n#film .simple-mark { position: absolute; left: 50%; top: 50%; z-index: 51; transform: translate(-50%, -50%); font-family: var(--serif); font-size: clamp(64px,7vw,112px); letter-spacing: .20em; padding-left: .20em; color: #fff; opacity: 0; }\n#film .simple-sub { margin-top: 24px; font-family: var(--sans); font-size: 11px; letter-spacing: .45em; text-align: center; color: rgba(255,255,255,.55); }\n#film .title-copy { position: absolute; inset: 0; z-index: 25; pointer-events: none; opacity: 0; will-change: opacity; }\n#film .tc-brand { position: absolute; left: 50%; top: 660px; transform: translateX(-50%);\n font-family: var(--sans); font-weight: 800; font-size: 40px; line-height: 40px;\n letter-spacing: 14px; padding-left: 14px; color: #f5fdff; white-space: nowrap; }\n#film .tc-credit { position: absolute; left: 50%; top: 712px; transform: translateX(-50%);\n font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 28px;\n letter-spacing: 3.2px; color: #faf0dc; white-space: nowrap; }\n#film .tc-l0 { position: absolute; left: 50%; top: 18px; transform: translateX(-50%);\n font-family: \"Cascadia Mono\", Consolas, monospace; font-size: 12px; line-height: 16px;\n letter-spacing: 1.8px; color: rgba(209,247,255,.82); white-space: nowrap; }\n#film .tc-l1, #film .tc-l2 { position: absolute; top: 492px; transform: translateX(-50%);\n font-family: \"Cascadia Mono\", Consolas, monospace; font-size: 12px; line-height: 16px;\n letter-spacing: 1.8px; color: rgba(209,247,255,.82); white-space: nowrap; }\n#film .tc-l1 { left: 376px; }\n#film .tc-l2 { left: 1544px; }\n#film .skip-hint { pointer-events: auto; cursor: pointer; padding: 6px 10px; border-radius: 999px; background: rgba(5,8,15,.35); border: 1px solid rgba(255,255,255,.12); }\n#film .skip-hint:hover { color: #fff; background: rgba(255,255,255,.10); }\n";
27234
27328
  const SPLASH_FILM_DOM = "<canvas class=\"canvas\" id=\"glCanvas\" aria-hidden=\"true\"></canvas>\n\n <div class=\"subtitle\" id=\"sub1\" aria-hidden=\"true\">夜再长,</div>\n <div class=\"subtitle\" id=\"sub2\" aria-hidden=\"true\">天总会亮。</div>\n\n <div class=\"letterbox\" id=\"letterbox\" aria-hidden=\"true\">\n <div class=\"bar top\" id=\"barTop\"></div>\n <div class=\"bar bottom\" id=\"barBottom\"></div>\n </div>\n\n <div class=\"skip-hint\" id=\"skipHint\" role=\"button\" tabindex=\"0\">点击这里跳过</div>\n <div class=\"skip-veil\" id=\"skipVeil\"></div>\n <div class=\"controls\" aria-label=\"预览控制\">\n <button type=\"button\" id=\"replayBtn\">重播</button>\n <button type=\"button\" id=\"soundBtn\">声音:关</button>\n <button type=\"button\" id=\"skipBtn\">跳过</button>\n </div>\n <div class=\"debug-label\" id=\"debugLabel\">t = 0 ms</div>\n\n <div class=\"simple-veil\" id=\"simpleVeil\"></div>\n <div class=\"simple-mark\" id=\"simpleMark\">\n <div>天光</div>\n <div class=\"simple-sub\">TIANLIGHT</div>\n </div>\n <div class=\"title-copy\" id=\"titleCopy\" aria-hidden=\"true\">\n <div class=\"tc-brand\">TIANLIGHT</div>\n <div class=\"tc-credit\">给 DeepSeek&nbsp;Harness 的一片天</div>\n <div class=\"tc-l0\"></div>\n <div class=\"tc-l1\">06:12</div>\n <div class=\"tc-l2\">E 92°</div>\n </div>";
27235
27329
  const SPLASH_FILM_SHADERS = {"scene-frag":{"type":"fragment","src":"#version 300 es\nprecision highp float;\nout vec4 fragColor;\n\nuniform vec2 uRes;\nuniform float uTime;\nuniform float uYaw;\nuniform float uPitch;\nuniform float uFov;\nuniform vec3 uSkyTop;\nuniform vec3 uSkyMid;\nuniform vec3 uSkyHor;\nuniform vec3 uSunDir;\nuniform vec3 uSunColor;\nuniform float uDawn;\nuniform float uStarFade;\nuniform float uMilky;\nuniform float uPrologue;\nuniform vec3 uHeroDir;\nuniform vec3 uHeroRight;\nuniform vec3 uHeroUp;\nuniform float uCometA;\nuniform vec2 uCometHead;\nuniform vec2 uCometDir;\nuniform float uCometLen;\nuniform float uMeteorA;\nuniform vec2 uMeteorHead;\nuniform vec2 uMeteorDir;\nuniform float uMeteorLen;\nuniform float uMeteor2A;\nuniform vec2 uMeteor2Head;\nuniform vec2 uMeteor2Dir;\nuniform float uMeteor2Len;\nuniform float uMeteor3A;\nuniform vec2 uMeteor3Head;\nuniform vec2 uMeteor3Dir;\nuniform float uMeteor3Len;\nuniform float uAurora;\nuniform float uAuroraPhase;\nuniform float uStarDebug;\nuniform float uStarBreath;\nuniform float uTitleGlow;\nuniform float uBeam;\nuniform vec2 uGap0;\nuniform vec2 uGap1;\nuniform vec2 uGap2;\nuniform vec2 uGap3;\nuniform vec2 uGap4;\nuniform vec2 uGap5;\nuniform vec2 uGap6;\nuniform vec2 uGap7;\nuniform sampler2D uNoise;\nuniform sampler2D uHorizonTex;\nuniform float uHorizonScale;\nuniform vec3 uRimColor;\nuniform float uRimStrength;\n\n#define PI 3.141592653589793\n#define MW_NORMAL normalize(vec3(0.38, 0.42, -0.82))\nconst vec3 A_CYAN = vec3(0.212, 0.753, 1.0);\nconst vec3 A_BLUE = vec3(0.050, 0.275, 0.745);\nconst vec3 A_VIOLET = vec3(0.144, 0.102, 0.611);\n\nfloat sat(float v) { return clamp(v, 0.0, 1.0); }\n\nfloat hash21(vec2 p) {\n p = fract(p * vec2(123.34, 456.21));\n p += dot(p, p + 45.32);\n return fract(p.x * p.y);\n}\n\nvec3 starLayer(vec3 rd, vec2 lp, vec2 shift, float density, float seed, float size, float power, float flare) {\n vec2 q = (lp + shift) * density + seed;\n vec2 id = floor(q);\n float h = hash21(id + seed * 1.7);\n float h2 = hash21(id + seed * 2.9 + 8.2);\n vec2 off = (vec2(h, h2) - 0.5) * 0.62;\n vec2 starLP = (id + 0.5 + off - seed) / density - shift;\n float lon = (starLP.x - 0.5) * 2.0 * PI;\n float lat = (starLP.y - 0.5) * PI;\n vec3 sd = vec3(cos(lon) * cos(lat), sin(lat), sin(lon) * cos(lat));\n float mu = dot(rd, sd);\n vec3 perp = rd - sd * mu;\n float d = length(perp);\n float rad = size * (0.30 + 0.70 * h2) * (1.0 + uStarDebug * 8.0);\n float visible = mix(step(0.55, h2) * step(0.03, h), 1.0, uStarDebug);\n float tw = 0.90 + 0.10 * sin(uTime * (0.25 + 0.25 * h) + h2 * 6.283 + id.x * 0.27);\n float core = 1.0 - smoothstep(0.0, rad, d);\n float halo = exp(-d / (rad * 1.8 + 0.0001)) * 0.10;\n float spark = 0.0;\n if (flare > 0.0) {\n vec3 t1 = normalize(cross(sd, vec3(0.0, 1.0, 0.0)) + vec3(0.0001, 0.0, 0.0));\n vec3 t2 = cross(sd, t1);\n float dx = abs(dot(rd - sd, t1));\n float dy = abs(dot(rd - sd, t2));\n spark = (exp(-dx * 1200.0) * exp(-dy * 80.0) + exp(-dy * 1200.0) * exp(-dx * 80.0)) * flare;\n }\n vec3 tint = mix(vec3(0.70, 0.83, 1.0), vec3(1.0, 0.93, 0.78), smoothstep(0.72, 1.0, h));\n float variation = 0.12 + 0.88 * pow(h, 2.4);\n return tint * (core * 1.9 + halo + spark * visible * 0.30) * visible * power * tw * variation;\n}\n\nfloat celestialLon(vec3 rd) { return atan(rd.z, rd.x) / (2.0 * PI) + 0.5; }\nfloat celestialLat(vec3 rd) { return asin(clamp(rd.y, -1.0, 1.0)) / PI + 0.5; }\n\nvec3 heroStar(vec3 rd) {\n float dx = dot(rd, uHeroRight);\n float dy = dot(rd, uHeroUp);\n float d = length(vec2(dx, dy));\n float core = 1.0 - smoothstep(0.0015, 0.007, d);\n float halo = exp(-d * 46.0) * 0.22 + exp(-d * 12.0) * 0.045;\n float fx = exp(-abs(dx) * 95.0) * exp(-abs(dy) * 18.0);\n float fy = exp(-abs(dy) * 95.0) * exp(-abs(dx) * 18.0);\n float tw = 0.91 + 0.09 * sin(uTime * 0.55);\n return vec3(0.90, 0.96, 1.0) * (core * 2.3 + halo + (fx + fy) * 0.20) * tw;\n}\n\nvec3 milkyWay(vec3 rd) {\n float band = exp(-pow(dot(rd, MW_NORMAL) / 0.21, 2.0));\n vec2 lp = vec2(celestialLon(rd), celestialLat(rd));\n float n = texture(uNoise, lp * vec2(3.2, 2.4) + 0.31).r;\n float n2 = texture(uNoise, lp * vec2(8.0, 6.0) + 2.7).g;\n float dust = smoothstep(0.45, 0.72, n2);\n vec3 deep = vec3(0.012, 0.018, 0.052);\n vec3 blue = vec3(0.060, 0.095, 0.235);\n vec3 violet = vec3(0.17, 0.13, 0.28);\n vec3 c = mix(deep, blue, smoothstep(0.26, 0.72, n));\n c = mix(c, violet, smoothstep(0.45, 0.88, n) * 0.55);\n c *= band * (0.55 + 0.65 * n) * (1.0 - 0.45 * dust);\n c += violet * band * 0.045;\n return c * 1.20;\n}\n\nvec3 comet(vec2 p) {\n vec2 q = p - uCometHead;\n vec2 dir = normalize(uCometDir);\n vec2 perp = vec2(-dir.y, dir.x);\n float along = dot(q, dir);\n float side = dot(q, perp);\n float t = clamp(along / max(0.0001, uCometLen), 0.0, 1.0);\n float window = smoothstep(-0.006, 0.010, along) * (1.0 - smoothstep(0.94, 1.08, t));\n float fade = pow(max(0.0, 1.0 - t), 2.1);\n float curve = 0.032 * t * t;\n float w1 = 0.0022 + 0.017 * t;\n float a = exp(-pow((side - 0.008 * t - curve) / w1, 2.0)) * fade;\n float b = exp(-pow((side + 0.020 * t + curve * 0.35) / (w1 * 1.35), 2.0)) * pow(max(0.0, 1.0 - t), 2.8);\n float n1 = texture(uNoise, vec2(along * 9.0, side * 5.0 + 0.3)).r;\n float n2 = texture(uNoise, vec2(along * 3.2, side * 2.2 + 1.7)).g;\n float fil = 0.62 + 0.62 * smoothstep(0.14, 0.86, n1) * (0.72 + 0.28 * n2);\n float sparkle = smoothstep(0.90, 1.0, texture(uNoise, vec2(along * 120.0, side * 70.0)).b) * (1.0 - t);\n vec3 c = A_CYAN * a * 0.88 + vec3(1.0, 0.80, 0.48) * b * 0.95;\n c *= fil * window;\n c += vec3(0.92, 0.98, 1.0) * sparkle * window * 0.22;\n float head = exp(-length(q) * 320.0) * 6.5 + exp(-length(q) * 85.0) * 0.30;\n c += vec3(0.86, 0.96, 1.0) * head;\n float hx = exp(-abs(q.x) * 210.0) * exp(-abs(q.y) * 26.0);\n float hy = exp(-abs(q.y) * 210.0) * exp(-abs(q.x) * 26.0);\n c += vec3(0.72, 0.92, 1.0) * (hx + hy) * 0.22;\n return c * uCometA;\n}\n\nvec3 meteorCore(vec2 p, float A, vec2 headPos, vec2 dirIn, float len) {\n vec2 q = p - headPos;\n vec2 dir = normalize(dirIn);\n vec2 perp = vec2(-dir.y, dir.x);\n float along = dot(q, dir);\n float side = dot(q, perp);\n float t = clamp(along / max(0.0001, len), 0.0, 1.0);\n float window = smoothstep(-0.002, 0.004, along) * (1.0 - smoothstep(0.90, 1.06, t));\n float trail = exp(-abs(side) / (0.0016 + 0.0034 * t)) * pow(1.0 - t, 2.2) * window;\n float head = exp(-length(q) * 420.0) * 5.0 + exp(-length(q) * 120.0) * 0.35;\n return vec3(0.86, 0.96, 1.0) * (trail * 0.75 + head) * A;\n}\nvec3 meteor(vec2 p) { return meteorCore(p, uMeteorA, uMeteorHead, uMeteorDir, uMeteorLen); }\nvec3 meteor2(vec2 p) { return meteorCore(p, uMeteor2A, uMeteor2Head, uMeteor2Dir, uMeteor2Len); }\nvec3 meteor3(vec2 p) { return meteorCore(p, uMeteor3A, uMeteor3Head, uMeteor3Dir, uMeteor3Len); }\n\nfloat angDiff(float a, float b) {\n float d = abs(a - b);\n return min(d, 2.0 * PI - d);\n}\n\nvec3 aurora(float az, float el) {\n vec3 col = vec3(0.0);\n for (int i = 0; i < 3; i++) {\n float fi = float(i);\n float baseCenter = -0.27 + fi * 0.27;\n float center = baseCenter + 0.055 * sin(el * 3.2 + fi * 2.1 + uAuroraPhase * 0.12)\n + 0.025 * sin(az * 2.0 + fi * 1.3 + uAuroraPhase * 0.05);\n float width = 0.070 + fi * 0.006;\n float topN = texture(uNoise, vec2(az * 1.25 + fi * 0.31 + uAuroraPhase * 0.010, 0.21 + fi * 0.17)).g;\n float foldN = texture(uNoise, vec2(az * 1.15 + fi * 0.40 + uAuroraPhase * 0.018, el * 0.32 + fi * 0.20)).r;\n float top = 0.42 + fi * 0.020 + topN * 0.065;\n float bot = 0.002 + 0.010 * (0.5 + 0.5 * sin(az * 4.5 + fi * 1.8 - uAuroraPhase * 0.05));\n float vert = (1.0 - smoothstep(top - 0.11, top, el)) * smoothstep(bot - 0.004, bot + 0.004, el);\n if (vert <= 0.001) continue;\n float folds = 0.42 + 0.58 * smoothstep(0.18, 0.82, foldN);\n float fine = 0.86 + 0.14 * sin(az * 23.0 + foldN * 7.0 + uAuroraPhase * 0.10 + fi * 1.7);\n float base = exp(-max(el - bot, 0.0) / 0.040);\n float glow = pow(max(0.0, 1.0 - el / max(top, 0.05)), 1.55);\n float core = exp(-pow((az - center) / width, 2.0));\n float halo = exp(-pow((az - center) / (width * 2.35), 2.0)) * 0.20;\n float center2 = center + 0.022 * sin(el * 7.0 + fi * 1.9 + uAuroraPhase * 0.27);\n float slice = exp(-pow((az - center2) / (width * 1.55), 2.0)) * 0.42;\n float curtain = (core + halo + slice) * vert * glow * folds * fine;\n curtain = max(curtain, core * vert * glow * 0.78);\n vec3 c = mix(A_CYAN, A_BLUE, smoothstep(0.0, top * 0.45, el));\n c = mix(c, A_VIOLET, smoothstep(top * 0.45, top * 1.05, el));\n c = mix(c, mix(A_CYAN, vec3(0.82, 0.98, 1.0), 0.40), base * 0.62);\n float middleBoost = (i == 1) ? 2.30 : 1.0;\n col += c * curtain * (0.98 - fi * 0.045) * middleBoost;\n col += mix(A_CYAN, vec3(0.82, 0.98, 1.0), 0.35) * (core + halo * 0.4) * base * 0.10;\n if (i == 1) {\n float travel = exp(-pow((az - (-0.44 + 0.88 * fract(uAuroraPhase * 0.075))) / 0.024, 2.0));\n col += A_CYAN * travel * (core + halo) * vert * 0.36;\n }\n }\n col += mix(A_CYAN, A_BLUE, 0.40) * exp(-el / 0.050) * 0.026;\n return col * 1.05;\n}\n\nvoid main() {\n vec2 p = (gl_FragCoord.xy - 0.5 * uRes) / uRes.y;\n float tanF = tan(radians(uFov) * 0.5);\n vec3 f = vec3(sin(uYaw) * cos(uPitch), sin(uPitch), cos(uYaw) * cos(uPitch));\n vec3 r = vec3(cos(uYaw), 0.0, -sin(uYaw));\n vec3 up = normalize(vec3(\n f.y * r.z - f.z * r.y,\n f.z * r.x - f.x * r.z,\n f.x * r.y - f.y * r.x\n ));\n vec3 rd = normalize(f + r * (p.x * 2.0 * tanF) + up * (p.y * 2.0 * tanF));\n\n float el = rd.y;\n float az = atan(rd.x, rd.z);\n float hNorm = texture(uHorizonTex, vec2(fract(az / (2.0 * PI) + 0.5), 0.5)).r;\n float h = hNorm * uHorizonScale;\n float sunAz = atan(uSunDir.x, uSunDir.z);\n float dAz = angDiff(az, sunAz);\n float dawn = clamp(uDawn, 0.0, 1.0);\n\n vec3 sky = mix(uSkyHor, uSkyMid, smoothstep(-0.025, 0.20, el));\n sky = mix(sky, uSkyTop, smoothstep(0.10, 0.66, el));\n\n // The bright band behind the cloud line: strongest where the sun is hiding.\n float goldBand = exp(-pow((el - h - 0.0040) / 0.013, 2.0)) * (0.35 + 1.25 * exp(-pow(dAz / 0.45, 2.0)));\n sky += uSunColor * goldBand * dawn * 0.86;\n sky += vec3(1.0, 0.34, 0.055) * goldBand * dawn * 0.22;\n sky += vec3(0.75, 0.24, 0.32) * exp(-pow((el - h - 0.055) / 0.085, 2.0)) * dawn * 0.13 * (0.45 + 0.8 * exp(-pow(dAz / 0.6, 2.0)));\n float broadGlow = exp(-max(el - h, 0.0) / 0.11) * (0.35 + 0.75 * exp(-pow(dAz / 0.60, 2.0)));\n sky += uSunColor * broadGlow * dawn * 0.030;\n float night = 1.0 - clamp(dawn, 0.0, 1.0);\n sky += vec3(0.005, 0.011, 0.024) * exp(-max(el, 0.0) / 0.32) * night;\n sky += vec3(0.0012, 0.0028, 0.0075) * night;\n\n float mu = max(dot(rd, uSunDir), 0.0);\n float above = smoothstep(-0.020, 0.012, uSunDir.y);\n float ang = acos(clamp(mu, -1.0, 1.0));\n sky += uSunColor * (exp(-ang * 220.0) * 0.55 + exp(-ang * 55.0) * 0.14\n + exp(-ang * 12.0) * 0.07) * above * dawn;\n sky += uSunColor * exp(-ang * 2.6) * 0.090 * above * dawn;\n sky += uSunColor * exp(-ang * 0.80) * 0.022 * above * dawn;\n float disk = 1.0 - smoothstep(0.0145, 0.0180, ang);\n float limb = 0.72 + 0.28 * (1.0 - smoothstep(0.0, 0.0180, ang));\n float diskAmp = mix(6.0, 0.55, uTitleGlow);\n float ringAmp = mix(1.4, 0.10, uTitleGlow);\n sky += mix(uSunColor, vec3(1.0, 0.95, 0.82), 0.55) * disk * limb * diskAmp * above * dawn;\n sky += uSunColor * exp(-abs(ang - 0.0140) * 320.0) * ringAmp * above * dawn;\n sky += uSunColor * exp(-ang * 24.0) * 0.30 * uTitleGlow * above * dawn;\n\n if (uStarFade > 0.001) {\n vec2 lp = vec2(celestialLon(rd), celestialLat(rd));\n vec3 stars = vec3(0.0);\n stars += starLayer(rd, lp, vec2(0.07, -0.02), 330.0, 2.0, 0.0013, 0.55, 0.0);\n stars += starLayer(rd, lp, vec2(-0.03, 0.04), 130.0, 5.3, 0.00085, 0.78, 0.0);\n stars += starLayer(rd, lp, vec2(0.02, 0.01), 24.0, 9.1, 0.00055, 1.15, 0.28);\n stars += starLayer(rd, lp, vec2(-0.11, 0.06), 430.0, 13.7, 0.00028, 0.30, 0.0);\n sky += stars * uStarFade;\n }\n sky += milkyWay(rd) * uMilky;\n if (uCometA > 0.001) sky += comet(p);\n if (uMeteorA > 0.001) sky += meteor(p);\n if (uMeteor2A > 0.001) sky += meteor2(p);\n if (uMeteor3A > 0.001) sky += meteor3(p);\n\n if (uAurora > 0.001) {\n sky += aurora(az, el) * uAurora;\n }\n\n // a fan of shafts: every wedge starts at a low point of the cloud line and\n // radiates away from the sun, widening as it climbs.\n if (uBeam > 0.001 && el > h) {\n vec2 gaps[8] = vec2[8](uGap0, uGap1, uGap2, uGap3, uGap4, uGap5, uGap6, uGap7);\n float here = el - h;\n float beams = 0.0;\n for (int i = 0; i < 8; i++) {\n if (gaps[i].y <= 0.001) continue;\n float wN = fract(sin(float(i) * 17.13) * 43758.5);\n float ga = gaps[i].x;\n float gs = gaps[i].y;\n float center = ga + (ga - sunAz) * here * 0.82;\n float wobble = 0.009 * sin(here * 12.0 + float(i) * 1.7 + uTime * 0.15);\n float spread = 0.006 + 0.100 * here + 0.008 * wN;\n float d = angDiff(az, center + wobble);\n float body = exp(-pow(d / spread, 2.0)) * exp(-here / 0.32) * gs;\n float wide = exp(-pow(d / (spread * 2.6), 2.0)) * exp(-here / 0.38) * gs;\n float core = exp(-pow(d / (spread * 0.24), 2.0)) * exp(-here / 0.42) * gs;\n float baseGlow = exp(-here / 0.070) * gs;\n float grain = texture(uNoise, vec2(az * 6.0 + ga * 4.0, here * 4.0 - uTime * 0.08)).r;\n float grain2 = texture(uNoise, vec2(az * 17.0 + ga * 7.0, here * 9.0 + uTime * 0.03)).g;\n body *= 0.58 + 0.52 * grain;\n float soft = 0.72 + 0.28 * grain2;\n float nearSun = exp(-abs(ga - sunAz) / 0.60);\n beams += (body * 0.80 + wide * 0.26 + core * 1.30 + baseGlow * 0.12) * soft * (0.45 + 0.80 * nearSun);\n }\n beams += exp(-here / 0.050) * 0.08;\n vec3 beamCol = mix(uSunColor, vec3(1.0, 0.62, 0.24), 0.46);\n sky += beamCol * beams * uBeam * 0.17;\n }\n\n // distant cloud-sea silhouette: a single rolling line, no near cloud detail\n float edge = 1.0 - smoothstep(-0.0012, 0.0012, el - h);\n vec3 silTop = mix(vec3(0.010, 0.013, 0.032), vec3(0.045, 0.034, 0.082), dawn);\n vec3 silBot = mix(vec3(0.002, 0.003, 0.008), vec3(0.016, 0.013, 0.038), dawn);\n vec3 sil = mix(silBot, silTop, smoothstep(-0.07, h, el));\n sil += vec3(0.010, 0.012, 0.030) * (0.55 + 0.45 * texture(uNoise, vec2(az * 0.63 + 0.2, 0.18)).r);\n sky = mix(sky, sil, edge);\n\n float rimD = el - h;\n float rim = exp(-max(rimD, 0.0) * 620.0) * smoothstep(-0.0018, 0.0018, rimD);\n float rimWide = exp(-max(rimD, 0.0) * 130.0) * smoothstep(-0.0022, 0.0022, rimD);\n sky += uRimColor * (rim * 1.25 + rimWide * 0.42) * uRimStrength * (1.0 - edge);\n sky += uSunColor * exp(-max(rimD, 0.0) / 0.050) * 0.048 * dawn * (1.0 - edge);\n\n // Prologue: black at t=0, one star breathing, then the sky starts to exist.\n float skyGate = smoothstep(1.30, 2.55, uTime);\n sky *= skyGate;\n sky += heroStar(rd) * uPrologue;\n sky *= 1.0 + 0.045 * sin(uTime * 2.1) * uStarBreath;\n\n fragColor = vec4(max(sky, vec3(0.0)), edge);\n}"},"god-frag":{"type":"fragment","src":"#version 300 es\nprecision highp float;\nout vec4 fragColor;\nuniform sampler2D uScene;\nuniform vec2 uRes;\nuniform vec2 uSunUV;\nuniform vec3 uSunColor;\nuniform float uStrength;\nvoid main() {\n vec2 uv = gl_FragCoord.xy / uRes;\n vec2 delta = (uv - uSunUV) / 48.0;\n vec2 p = uSunUV;\n float blockedLen = 0.0;\n bool escaped = false;\n for (int i = 0; i < 48; i++) {\n p += delta;\n float occ = texture(uScene, clamp(p, vec2(0.001), vec2(0.999))).a;\n if (!escaped) {\n if (occ > 0.5) blockedLen += 1.0;\n else escaped = true;\n } else if (occ > 0.5) {\n blockedLen += 1.0;\n }\n }\n float lit = exp(-blockedLen * 0.42);\n float dist = length(uv - uSunUV);\n float falloff = exp(-dist * 1.9) * smoothstep(0.0, 0.035, dist + 0.001);\n vec3 c = uSunColor * lit * falloff * uStrength;\n fragColor = vec4(c, 1.0);\n}"},"bright-frag":{"type":"fragment","src":"#version 300 es\nprecision highp float;\nout vec4 fragColor;\nuniform sampler2D uScene;\nuniform vec2 uRes;\nuniform float uThreshold;\nvoid main() {\n vec2 uv = gl_FragCoord.xy / uRes;\n vec3 c = texture(uScene, uv).rgb;\n float l = max(c.r, max(c.g, c.b));\n float b = smoothstep(uThreshold, uThreshold + 0.9, l);\n fragColor = vec4(c * b, 1.0);\n}"},"blur-frag":{"type":"fragment","src":"#version 300 es\nprecision highp float;\nout vec4 fragColor;\nuniform sampler2D uTex;\nuniform vec2 uRes;\nuniform vec2 uDir;\nvoid main() {\n vec2 uv = gl_FragCoord.xy / uRes;\n float w0 = 0.227027, w1 = 0.1945946, w2 = 0.1216216, w3 = 0.054054, w4 = 0.016216;\n vec2 o = uDir / uRes;\n vec3 c = texture(uTex, uv).rgb * w0;\n c += texture(uTex, uv + o * 1.0).rgb * w1;\n c += texture(uTex, uv - o * 1.0).rgb * w1;\n c += texture(uTex, uv + o * 2.0).rgb * w2;\n c += texture(uTex, uv - o * 2.0).rgb * w2;\n c += texture(uTex, uv + o * 3.0).rgb * w3;\n c += texture(uTex, uv - o * 3.0).rgb * w3;\n c += texture(uTex, uv + o * 4.0).rgb * w4;\n c += texture(uTex, uv - o * 4.0).rgb * w4;\n fragColor = vec4(c, 1.0);\n}"},"composite-frag":{"type":"fragment","src":"#version 300 es\nprecision highp float;\nout vec4 fragColor;\nuniform sampler2D uScene;\nuniform sampler2D uBloom;\nuniform sampler2D uRays;\nuniform sampler2D uUi;\nuniform vec2 uRes;\nuniform float uTime;\nuniform vec2 uSunUV;\nuniform vec3 uSunColor;\nuniform float uFlare;\nuniform float uRayStrength;\nuniform float uBloomStrength;\nuniform float uExposure;\nuniform float uDark;\nuniform float uUiMix;\nuniform float uRaw;\nuniform vec4 uUiRect;\n\nfloat hash21(vec2 p) {\n p = fract(p * vec2(123.34, 456.21));\n p += dot(p, p + 45.32);\n return fract(p.x * p.y);\n}\nvec3 aces(vec3 x) {\n return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);\n}\nvec3 toSRGB(vec3 x) {\n return mix(x * 12.92, 1.055 * pow(max(x, vec3(0.0)), vec3(1.0 / 2.4)) - 0.055, step(0.0031308, x));\n}\n\nvoid main() {\n vec2 uv = gl_FragCoord.xy / uRes;\n if (uRaw > 0.5) { fragColor = vec4(texture(uScene, uv).rgb, 1.0); return; }\n vec2 d = uv - 0.5;\n\n float ca = 0.0011 * (0.18 + dot(d, d) * 1.8);\n vec3 color;\n color.r = texture(uScene, uv + d * ca).r;\n color.g = texture(uScene, uv).g;\n color.b = texture(uScene, uv - d * ca).b;\n\n if (uRayStrength > 0.001) {\n vec3 rays = texture(uRays, uv).rgb;\n color += rays * (1.0 - texture(uScene, uv).a);\n }\n\n color += texture(uBloom, uv).rgb * uBloomStrength * 1.35;\n\n if (uFlare > 0.001) {\n vec2 sp = uv - uSunUV;\n float ax = abs(sp.x), ay = abs(sp.y);\n float edgeFade = 1.0 - smoothstep(0.38, 0.52, ax);\n float hEnv = exp(-pow(ax / 0.30, 2.0)) * edgeFade;\n float core = exp(-ay * 210.0) * 1.10 + exp(-ay * 72.0) * 0.34;\n float glow = exp(-ay * 24.0) * 0.10 + exp(-ay * 10.0) * 0.035;\n float line = (core + glow) * hEnv;\n vec3 warm = vec3(1.0, 0.84, 0.56);\n vec3 cool = vec3(0.34, 0.86, 1.0);\n vec3 flareCol = mix(warm, cool, smoothstep(0.015, 0.28, ax));\n color += flareCol * line * uFlare * 0.62;\n vec2 axis = vec2(0.5) - uSunUV;\n color += vec3(0.22, 0.62, 0.94) * exp(-length(uv - (uSunUV + axis * 0.34)) * 64.0) * 0.060 * uFlare;\n color += vec3(0.86, 0.68, 0.46) * exp(-length(uv - (uSunUV + axis * 0.66)) * 48.0) * 0.045 * uFlare;\n color += vec3(0.42, 0.64, 0.86) * exp(-length(uv - (uSunUV + axis * 1.02)) * 38.0) * 0.038 * uFlare;\n }\n\n // soft radial dimming behind the wordmark; the glyphs themselves stay opaque\n float dx = (uv.x - 0.500) / 0.345;\n float dy = (uv.y - 0.537) / 0.225;\n float dk = exp(-(dx * dx + dy * dy) * 1.55);\n color *= 1.0 - 0.35 * uDark * dk;\n\n color = max(color, vec3(0.0)) * uExposure;\n color = aces(color);\n float gradeLuma = dot(color, vec3(0.2126, 0.7152, 0.0722));\n color = mix(vec3(gradeLuma), color, 1.15);\n color = clamp(color, 0.0, 1.0);\n color = mix(color, color * color * (3.0 - 2.0 * color), 0.11);\n color = mix(vec3(dot(color, vec3(0.2126, 0.7152, 0.0722))), color, 1.04);\n\n float vig = 1.0 - smoothstep(0.32, 1.18, length(d * vec2(1.02, 1.10)));\n color *= mix(0.70, 1.0, vig);\n color = toSRGB(color);\n\n float postLuma = dot(color, vec3(0.2126, 0.7152, 0.0722));\n color *= mix(vec3(0.965, 0.985, 1.020), vec3(1.035, 1.000, 0.965), smoothstep(0.30, 0.86, postLuma));\n float grain = hash21(gl_FragCoord.xy * 0.86 + vec2(uTime * 173.1, uTime * 91.7)) - 0.5;\n color += grain * (0.012 + 0.008 * smoothstep(0.2, 0.9, dot(color, vec3(0.333))));\n\n if (uUiMix > 0.0001) {\n vec2 uiUV = (uv - uUiRect.xy) / uUiRect.zw;\n vec3 ui = texture(uUi, clamp(uiUV, vec2(0.0), vec2(1.0))).rgb;\n color = mix(color, ui, smoothstep(0.0, 1.0, uUiMix));\n }\n\n fragColor = vec4(clamp(color, 0.0, 1.0), 1.0);\n}"},"overlay-vert":{"type":"vertex","src":"#version 300 es\nprecision highp float;\nlayout(location = 0) in vec2 aCorner;\nlayout(location = 1) in vec2 aCenter;\nlayout(location = 2) in vec2 aSize;\nlayout(location = 3) in float aRot;\nlayout(location = 4) in vec4 aUV;\nlayout(location = 5) in vec4 aColor;\nlayout(location = 6) in float aMode;\nlayout(location = 7) in float aAlpha;\nlayout(location = 8) in vec4 aParams;\n\nuniform vec2 uDesign;\nout vec2 vCorner;\nout vec2 vUV;\nout vec2 vSize;\nout vec4 vColor;\nout float vMode;\nout float vAlpha;\nout vec4 vParams;\n\nvoid main() {\n vec2 local = (aCorner - 0.5) * aSize;\n float c = cos(aRot);\n float s = sin(aRot);\n vec2 rot = vec2(local.x * c - local.y * s, local.x * s + local.y * c);\n vec2 screen = aCenter + rot;\n vec2 ndc = vec2(screen.x / uDesign.x * 2.0 - 1.0, 1.0 - screen.y / uDesign.y * 2.0);\n gl_Position = vec4(ndc, 0.0, 1.0);\n vCorner = aCorner;\n vUV = mix(aUV.xy, aUV.zw, aCorner);\n vSize = aSize;\n vColor = aColor;\n vMode = aMode;\n vAlpha = aAlpha;\n vParams = aParams;\n}"},"overlay-frag":{"type":"fragment","src":"#version 300 es\nprecision highp float;\nin vec2 vCorner;\nin vec2 vUV;\nin vec2 vSize;\nin vec4 vColor;\nin float vMode;\nin float vAlpha;\nin vec4 vParams;\nout vec4 fragColor;\n\nuniform sampler2D uMask;\nuniform sampler2D uAtlas;\nuniform sampler2D uScene;\nuniform vec2 uRes;\nuniform float uTime;\nuniform float uSheen;\nuniform float uLanding;\nuniform float uTitleBody;\n\nfloat sdRoundBox(vec2 p, vec2 b, float r) {\n vec2 q = abs(p) - b + r;\n return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - r;\n}\nfloat hash21(vec2 p) {\n p = fract(p * vec2(123.34, 456.21));\n p += dot(p, p + 45.32);\n return fract(p.x * p.y);\n}\n\nvoid main() {\n vec2 uv = gl_FragCoord.xy / uRes;\n if (vMode < 0.5) {\n // glass wordmark tile (and, in the landing, a growing glass pane)\n vec2 p = (vCorner - 0.5) * vSize;\n float radius = vParams.x;\n float sd = sdRoundBox(p, vSize * 0.5 - 1.0, radius);\n float shape = 1.0 - smoothstep(-0.85, 0.85, sd);\n if (shape <= 0.001) discard;\n\n vec3 scene = texture(uScene, uv).rgb;\n vec3 refl = pow(1.0 - exp(-max(scene, vec3(0.0)) * 1.15), vec3(0.4545));\n float mask = 0.0;\n if (vParams.z > 0.001) mask = texture(uMask, clamp(vUV, vec2(0.0), vec2(1.0))).r * vParams.z;\n\n float gx = texture(uMask, clamp(vUV + vec2(1.5 / 1920.0, 0.0), vec2(0.0), vec2(1.0))).r\n - texture(uMask, clamp(vUV - vec2(1.5 / 1920.0, 0.0), vec2(0.0), vec2(1.0))).r;\n float gy = texture(uMask, clamp(vUV + vec2(0.0, 1.5 / 1080.0), vec2(0.0), vec2(1.0))).r\n - texture(uMask, clamp(vUV - vec2(0.0, 1.5 / 1080.0), vec2(0.0), vec2(1.0))).r;\n float edgeMask = smoothstep(0.035, 0.20, length(vec2(gx, gy)));\n\n float edgePx = 1.0 - smoothstep(0.0, 2.0, abs(sd));\n float sheen = exp(-pow((uv.x * 0.82 + (1.0 - uv.y) * 0.36 - uSheen) / 0.055, 2.0));\n\n float border = 1.0 - smoothstep(0.15, 0.65, vParams.z);\n vec3 blur = (texture(uScene, clamp(uv + vec2(2.0 / 1920.0, 0.0), vec2(0.0), vec2(1.0))).rgb\n + texture(uScene, clamp(uv - vec2(2.0 / 1920.0, 0.0), vec2(0.0), vec2(1.0))).rgb\n + texture(uScene, clamp(uv + vec2(0.0, 2.0 / 1080.0), vec2(0.0), vec2(1.0))).rgb\n + texture(uScene, clamp(uv - vec2(0.0, 2.0 / 1080.0), vec2(0.0), vec2(1.0))).rgb) * 0.25;\n vec3 skyTint = mix(vec3(0.30, 0.18, 0.50), vec3(1.0, 0.70, 0.36), 1.0 - uv.y);\n vec3 glass = mix(skyTint, mix(refl, blur, 0.45), 0.38);\n float edgeGrad = 0.55 + 0.45 * (1.0 - smoothstep(0.55, 0.95, uv.y));\n glass += vec3(0.82, 0.96, 1.0) * edgePx * border * edgeGrad * (0.58 + vParams.w * 2.2);\n glass += vec3(0.95, 0.99, 1.0) * sheen * 0.28;\n glass *= vColor.rgb;\n\n vec3 titleCol = mix(vec3(1.0, 0.99, 0.97), vec3(1.0, 0.80, 0.50), 1.0 - smoothstep(0.46, 0.62, uv.y));\n titleCol = mix(titleCol, refl * vec3(0.92, 0.98, 1.0), 0.42);\n titleCol += vec3(1.0) * edgeMask * mask * 0.48;\n titleCol += vec3(1.0) * sheen * mask * 0.45;\n float mr = texture(uMask, clamp(vUV + vec2(1.2 / 1920.0, 0.0), vec2(0.0), vec2(1.0))).r;\n float mb = texture(uMask, clamp(vUV - vec2(1.2 / 1920.0, 0.0), vec2(0.0), vec2(1.0))).r;\n titleCol.r += max(0.0, mr - mask) * 0.35;\n titleCol.b += max(0.0, mb - mask) * 0.28;\n\n vec3 col = mix(glass, titleCol, mask);\n float glassA = vColor.a * shape * border * (0.22 + edgePx * edgeGrad * 0.24 + vParams.w * 0.30) * vAlpha;\n float glyphA = mask * shape * vAlpha;\n float alpha = max(glassA, glyphA);\n if (alpha <= 0.001) discard;\n fragColor = vec4(clamp(col, 0.0, 1.0), clamp(alpha, 0.0, 1.0));\n } else if (vMode < 1.5) {\n // ring segment: a thin instanced quad, 1.5 px wide\n vec2 e = min(vCorner, 1.0 - vCorner) * vSize;\n float edge = smoothstep(0.0, 0.9, min(e.x, e.y));\n float a = vColor.a * vAlpha * edge;\n if (a <= 0.001) discard;\n fragColor = vec4(vColor.rgb, a);\n } else if (vMode < 2.5) {\n // tick\n vec2 e = min(vCorner, 1.0 - vCorner) * vSize;\n float edge = smoothstep(0.0, 0.8, min(e.x, e.y));\n float a = vColor.a * vAlpha * edge;\n if (a <= 0.001) discard;\n fragColor = vec4(vColor.rgb, a);\n } else if (vMode < 3.5) {\n // atlas text line\n vec4 t = texture(uAtlas, clamp(vUV, vec2(0.0), vec2(1.0)));\n float a = t.a * vColor.a * vAlpha;\n if (a <= 0.001) discard;\n fragColor = vec4(vColor.rgb, a);\n } else if (vMode < 4.5) {\n // panel outline during the match cut\n vec2 p = (vCorner - 0.5) * vSize;\n vec2 b = vSize * 0.5 - 1.0;\n vec2 q = abs(p) - b;\n float d = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0);\n float line = 1.0 - smoothstep(0.0, 1.4, abs(d));\n float a = line * vColor.a * vAlpha;\n if (a <= 0.001) discard;\n fragColor = vec4(vColor.rgb, a);\n } else if (vMode < 5.5) {\n // soft round mote / landing spark\n vec2 p = (vCorner - 0.5) * vSize;\n float r = length(p) / max(0.5, vSize.x * 0.5);\n float a = exp(-r * r * 5.0) * vColor.a * vAlpha;\n if (a <= 0.001) discard;\n fragColor = vec4(vColor.rgb, a);\n } else {\n // full-screen opaque wordmark body, drawn after the tiles to seal seams\n vec2 muv = vec2(uv.x, 1.0 - uv.y);\n float m0 = texture(uMask, muv).r;\n float m1 = texture(uMask, muv + vec2(1.5 / 1920.0, 0.0)).r;\n float m2 = texture(uMask, muv - vec2(1.5 / 1920.0, 0.0)).r;\n float m3 = texture(uMask, muv + vec2(0.0, 1.5 / 1080.0)).r;\n float m4 = texture(uMask, muv - vec2(0.0, 1.5 / 1080.0)).r;\n float mask = max(max(max(m0, m1), max(m2, m3)), m4);\n if (mask <= 0.004) discard;\n float gx = m1 - m2;\n float gy = m3 - m4;\n float edgeMask = smoothstep(0.035, 0.20, length(vec2(gx, gy)));\n float sheen = exp(-pow((uv.x * 0.82 + (1.0 - uv.y) * 0.36 - uSheen) / 0.055, 2.0));\n vec3 titleCol = mix(vec3(1.0, 0.99, 0.97), vec3(1.0, 0.80, 0.50), 1.0 - smoothstep(0.46, 0.62, uv.y));\n titleCol += vec3(1.0) * edgeMask * 0.14;\n titleCol += vec3(1.0) * sheen * 0.20;\n fragColor = vec4(clamp(titleCol * vColor.rgb, 0.0, 1.0), mask * vAlpha);\n }\n}"}};
27330
+ //#endregion
27331
+ //#region splash
27236
27332
 
27237
27333
  function createSplashFilmRuntime(options) {
27238
27334
  'use strict'
@@ -28724,6 +28820,8 @@ body[data-dsh-tianlight][data-tl-legibility="boost"] [data-tl-font-panel] {
28724
28820
  }
28725
28821
 
28726
28822
 
28823
+ //#endregion
28824
+ //#region splash
28727
28825
  function installSplashFilm(options) {
28728
28826
  const opts = options !== null && typeof options === "object" ? options : {};
28729
28827
  if (typeof document === "undefined" || document.body === null) return null;
@@ -29874,6 +29972,7 @@ body[data-dsh-tianlight][data-tl-legibility="boost"] [data-tl-font-panel] {
29874
29972
  "lib.label.unlock": "待恢复",
29875
29973
  "lib.label.play": "播放",
29876
29974
  "lib.group.sources": "来源(目录/代码)",
29975
+ "lib.bundle.note": "自带壁纸是紫调人物循环(bg-4k.mp4);想要「新海诚式天空」,在「URL 地址」粘贴天空视频,或把天空视频放进 assets/ 再刷新。",
29877
29976
  "lib.punct.colon": ":",
29878
29977
  "lib.group.list": "壁纸清单",
29879
29978
  "lib.we.hint": "把 Wallpaper Engine 的 projects 目录粘在这里,每行一个;只读,不修改原文件。",
@@ -30240,6 +30339,7 @@ body[data-dsh-tianlight][data-tl-legibility="boost"] [data-tl-font-panel] {
30240
30339
  "lib.label.unlock": "Needs a click",
30241
30340
  "lib.label.play": "Play",
30242
30341
  "lib.group.sources": "Sources (folders/code)",
30342
+ "lib.bundle.note": "The bundled wallpaper is the purple character loop (bg-4k.mp4); for a Makoto Shinkai daylight sky, paste a sky video under URL or drop one into assets/ and reload.",
30243
30343
  "lib.punct.colon": ": ",
30244
30344
  "lib.group.list": "Wallpaper list",
30245
30345
  "lib.we.hint": "Paste the Wallpaper Engine projects folders here, one per line; read-only, the original files are untouched.",
@@ -30798,6 +30898,8 @@ body[data-dsh-tianlight] [data-tl-wall] .tl-wall-badge-hint {
30798
30898
 
30799
30899
  function installWallpaperSidebar(ctx) {
30800
30900
  if (React === null || typeof ctx.inject !== "function") return () => {};
30901
+ //#endregion
30902
+ //#region wallpaper sidebar
30801
30903
 
30802
30904
  /**
30803
30905
  * Curated presets shipped with the skin. The same recipes live in
@@ -32710,6 +32812,14 @@ body[data-dsh-tianlight] [data-tl-wall] .tl-wall-badge-hint {
32710
32812
  ),
32711
32813
  ),
32712
32814
  ),
32815
+ // Bundled vs. recommended: the shipped wallpaper is a purple character
32816
+ // loop, while the product promise is a Makoto Shinkai daylight sky. Say
32817
+ // which is which so a fresh install cannot read as a bait-and-switch.
32818
+ React.createElement(
32819
+ "p",
32820
+ { className: "tl-wall-hint", "data-tl-wall-bundle-note": "" },
32821
+ t("lib.bundle.note"),
32822
+ ),
32713
32823
  // v0.6.0: Wallpaper Engine is auto-detected from the app's library; the
32714
32824
  // folder-path editor is now only a collapsed edge-case fallback.
32715
32825
  React.createElement(
@@ -34651,7 +34761,6 @@ body[data-dsh-tianlight] [data-tl-wall] .tl-wall-badge-hint {
34651
34761
  };
34652
34762
  }
34653
34763
  //#endregion
34654
-
34655
34764
  //#region we library
34656
34765
  /**
34657
34766
  * v0.6.0 — 本机 Wallpaper Engine 壁纸库(A real click-to-apply WE library).
@@ -36426,7 +36535,7 @@ body[data-dsh-tianlight] [data-tl-wall] .tl-wall-badge-hint {
36426
36535
  "hub.glass.lowered": "当前档:{depth}(实际 {effective},已自动降级)",
36427
36536
  "hub.glass.unavailable": "玻璃控制器未就绪。",
36428
36537
  "hub.glass.done": "玻璃质感:{depth}",
36429
- "hub.glass.previewHint": "默认柔和;真实更明显、磨砂最安静;「实时渲染」逐帧采样背后的壁纸(更耗电);低电量/15fps 自动降级。",
36538
+ "hub.glass.previewHint": "默认关闭;可开启液态玻璃(「柔和」或「真实」,真实最明显、磨砂最安静);「实时渲染」逐帧采样背后的壁纸、更耗电;低性能设备、低电量与 15fps 会自动暂停/降级。",
36430
36539
  "hub.glass.preview": "当前:{depth} · 实际:{effective}",
36431
36540
  "hub.glass.previewLive": "当前:{depth} · 实时采样 · 实际:{effective}",
36432
36541
  "hub.glass.live": "实时渲染",
@@ -36842,7 +36951,7 @@ body[data-dsh-tianlight] [data-tl-wall] .tl-wall-badge-hint {
36842
36951
  "hub.glass.lowered": "Depth: {depth} (effective {effective}, auto-lowered)",
36843
36952
  "hub.glass.unavailable": "Glass control is unavailable.",
36844
36953
  "hub.glass.done": "Glass depth: {depth}",
36845
- "hub.glass.previewHint": "Soft is the default; Real is the most visible, Frosted the quietest; Live samples the wallpaper behind the glass every frame (costs more power); auto-lowered on low power or 15fps.",
36954
+ "hub.glass.previewHint": "Off by default; pick Soft or Real to enable liquid glass (Real is the most visible, Frosted the quietest); Live samples the wallpaper behind the glass every frame and costs more power; lower-end devices, low power and 15fps pause or lower it automatically.",
36846
36955
  "hub.glass.preview": "Current: {depth} · effective: {effective}",
36847
36956
  "hub.glass.previewLive": "Current: {depth} · live sampling · effective: {effective}",
36848
36957
  "hub.glass.live": "Live rendering",
@@ -37758,6 +37867,8 @@ body[data-dsh-tianlight] [data-tl-wall] .tl-wall-badge-hint {
37758
37867
  return node;
37759
37868
  }
37760
37869
 
37870
+ //#endregion
37871
+ //#region role hub
37761
37872
  /**
37762
37873
  * Install the full-screen role hub (pet menu / right-click are the entry points).
37763
37874
  * Returns a disposer that closes (and fully removes) an open overlay and restores
@@ -43407,4 +43518,5 @@ body[data-dsh-tianlight] .tl5-a11y-note {
43407
43518
  exports.apply = apply;
43408
43519
  return module.exports;
43409
43520
  }
43410
- });
43521
+ });
43522
+ })();
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Host loader entry for the TIANLIGHT skin.
1
+ // Host loader entry for the TIANLIGHT skin.
2
2
  //
3
3
  // The skin's browser half needs large binary assets (a looping video wallpaper
4
4
  // and character art) that must NOT be inlined into `lib/client.js`. The client
@@ -69,7 +69,7 @@ const HOST_API = '3'
69
69
  * manifest is stamped with it. The handshake no longer compares it, so a
70
70
  * browser-half-only update can run against an unchanged host process.
71
71
  */
72
- const BUILD = '2.2.2'
72
+ const BUILD = '2.2.4'
73
73
 
74
74
  /**
75
75
  * Identity handed to the route modules that need it. `HOST_API`/`BUILD` stay in this
@@ -239,6 +239,56 @@ function handle(ctx, req, res) {
239
239
  mediaRoutes.fallback(req, res, rest)
240
240
  }
241
241
 
242
+ /**
243
+ * Startup self-check for the route carrier.
244
+ *
245
+ * The skin registers its prefix with the Node-style `handler` field. That is the
246
+ * legacy branch of the host dispatcher: 0.2.2-rc.3 supports BOTH (`typeof responder
247
+ * === 'function'` → `'resource' in responder` → `responder.handler`), while the
248
+ * official packages already ship Fetch-style `resource` routes. If a future DSH drops
249
+ * the legacy branch, every route this plugin owns returns 404 while the DOM/CSS half
250
+ * keeps working — a state that reads as "wallpaper and settings are broken" and is
251
+ * expensive to diagnose from a screenshot. One same-process GET against our own
252
+ * origin turns it into a single explicit log line.
253
+ *
254
+ * It never blocks apply, never throws, and stays quiet when the probe cannot reach the
255
+ * server (that is a boot-timing question, not a contract answer).
256
+ */
257
+ function scheduleRouteSelfCheck(carrier) {
258
+ let origin = ''
259
+ try {
260
+ origin = typeof carrier.getOrigin === 'function' ? String(carrier.getOrigin() ?? '') : ''
261
+ } catch {
262
+ origin = ''
263
+ }
264
+ if (origin === '') return () => {}
265
+ const timer = setTimeout(() => {
266
+ let pending
267
+ try {
268
+ pending = fetch(origin + ROUTE + '/_manifest', { cache: 'no-store' })
269
+ } catch {
270
+ return
271
+ }
272
+ pending
273
+ .then((response) => {
274
+ if (response.ok === true) return
275
+ // A definitive dispatch answer: our route answered with a non-2xx status.
276
+ console.warn(
277
+ '[ui-skin-tianlight] route self-check FAILED: ' + origin + ROUTE + '/_manifest answered HTTP ' +
278
+ response.status + '. The host no longer dispatches the legacy `handler` route field, so every ' +
279
+ 'plugin route (assets, settings, pet, weather) is unreachable behind an otherwise normal page. ' +
280
+ 'Host API ' + HOST_API + '. Migration is a full Fetch `resource` rewrite of every route ' +
281
+ '(docs/COMPAT-0.3.0.md §6.1); adding `resource` next to `handler` would 405 the write routes.',
282
+ )
283
+ })
284
+ .catch(() => {
285
+ // Connection-level failure: the server may still be binding. Not a contract answer.
286
+ })
287
+ }, 1200)
288
+ if (typeof timer.unref === 'function') timer.unref()
289
+ return () => clearTimeout(timer)
290
+ }
291
+
242
292
  /**
243
293
  * Registers both prefix routes on the web-server carrier: the skin's own asset
244
294
  * routes and the vendored Wallpaper Engine library bridge. The carrier service is
@@ -262,7 +312,9 @@ function bindRoutes(ctx) {
262
312
  // The skin handler is bound to this plugin context so write routes (the pet
263
313
  // chat bridge) can resolve optional Host services at request time.
264
314
  const disposeSkin = carrier.register({ kind: 'prefix', path: ROUTE, handler: (req, res) => handle(ctx, req, res) })
315
+ const cancelSelfCheck = scheduleRouteSelfCheck(carrier)
265
316
  return () => {
317
+ cancelSelfCheck()
266
318
  try {
267
319
  if (typeof disposeWe === 'function') disposeWe()
268
320
  } catch {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-client-ui-skin-tianlight",
3
3
  "description": "Tianlight skin for the dsh web GUI: Makoto Shinkai daylight skies, an 18.5s cinematic opening film / compact splash with a 0.4x low-end tier, delayed performance fallback, optional reduced-motion override and explicit hint/Esc skip, a looping video wallpaper, a wallpaper library with upload/rotation, optional WebWallGL scene support, and a draggable Mint chibi-cat desktop companion",
4
- "version": "2.2.2",
4
+ "version": "2.2.4",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "bin": {
@@ -56,11 +56,13 @@
56
56
  "build:check": "node tools/build.mjs --check",
57
57
  "check": "node tools/build.mjs --check && node tools/test.mjs && node tools/structure.mjs --strict && node tools/deps.mjs --check && node tools/audit.mjs && node tools/check-css.mjs && node tools/verify.mjs && node tools/i18n-audit.mjs",
58
58
  "upgrade": "node tools/upgrade-check.mjs && node tools/hook-scan.mjs --self-check",
59
+ "guide-diff": "node tools/guide-diff.mjs",
59
60
  "hook-scan": "node tools/hook-scan.mjs",
60
61
  "compat": "node tools/compat-matrix.mjs",
61
62
  "pack": "node tools/pack.mjs",
62
63
  "artifacts": "node tools/release-artifacts.mjs",
63
64
  "verify-install": "node tools/verify-install.mjs",
65
+ "verify-tag-run": "node tools/verify-tag-run.mjs",
64
66
  "snapshot": "node tools/snapshot.mjs",
65
67
  "restore": "node tools/restore.mjs",
66
68
  "agent-check": "node tools/agent-check.mjs",
package/skin.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "tianlight",
3
3
  "name": "天光",
4
4
  "nameEn": "TIANLIGHT",
5
- "version": "2.2.2",
5
+ "version": "2.2.4",
6
6
  "author": "local",
7
7
  "tagline": "新海诚式天光 ・ 18.5 秒长片开机动画/简洁版(可选减少动态效果覆盖;仅提示/Esc 跳过) ・ 动态壁纸与可上传壁纸库 ・ 可选 WebWallGL 场景 ・ 薄荷小猫桌宠 ・ 职责通道(role pack → 桌宠气泡/选择) ・ 生活节奏与主动开口预算 ・ 可替换图片/≤32MiB 视频形象 ・ 液态玻璃三档 ・ AI 桌宠(严格权限) ・ 接入 DSH Agent(受控) ・ 桌宠即入口 ・ 兼容 DSH 0.2.0–0.2.2",
8
8
  "description": "天光是一套新海诚式日光天空主题:全屏循环视频壁纸与半透明天光玻璃面板,可选 18.5 秒长片或简洁版开机动画。壁纸库支持上传、轮播、标签与画面滤镜,并可接入 Wallpaper Engine 场景;桌宠「薄荷小猫」会陪你看时间、记事情、聊两句,角色中枢集中管理外观、生活节奏与权限。同一份构建适配 DSH 0.2.0 / 0.2.1 / 0.2.2。",