dsh-client-ui-skin-tianlight 2.1.4 → 2.1.5

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/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.1.4",
5
- "commit": "350e16af0d2b13bb144ea056f2397b41a310316f",
6
- "builtAt": "2026-11-15T13:09:15+08:00",
4
+ "version": "2.1.5",
5
+ "commit": "5d719786a7fa8cbc483f424bd505d19e90dcce79",
6
+ "builtAt": "2026-11-15T13:50:27+08:00",
7
7
  "source": "pack"
8
8
  }
package/lib/client.js CHANGED
@@ -34,7 +34,7 @@ window.__ModuleLoader__.load({
34
34
  * must equal `package.json` `version`; tools/test.mjs fails the chain when the
35
35
  * two drift (the 2.1.0-2.1.3 builds printed a stale "2.0.4").
36
36
  */
37
- const TL_BUILD_VERSION = "2.1.4";
37
+ const TL_BUILD_VERSION = "2.1.5";
38
38
 
39
39
  /**
40
40
  * Host identity last reported by `_engines`: `build` is the host's
package/lib/index.js CHANGED
@@ -74,7 +74,7 @@ const HOST_API = '2'
74
74
  * manifest is stamped with it. The handshake no longer compares it, so a
75
75
  * browser-half-only update can run against an unchanged host process.
76
76
  */
77
- const BUILD = '2.1.4'
77
+ const BUILD = '2.1.5'
78
78
 
79
79
  function readRoots() {
80
80
  try {
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 dsh-we-wallpaper contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dsh-we-wallpaper contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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.1.4",
4
+ "version": "2.1.5",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "bin": {
package/skin.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "tianlight",
3
3
  "name": "天光",
4
4
  "nameEn": "TIANLIGHT",
5
- "version": "2.1.4",
5
+ "version": "2.1.5",
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。",
@@ -1,21 +1,21 @@
1
- This is free and unencumbered software released into the public domain.
2
-
3
- Anyone is free to copy, modify, publish, use, compile, sell, or distribute
4
- this software, either in source code form or as a compiled binary, for any
5
- purpose, commercial or non-commercial, and by any means.
6
-
7
- In jurisdictions that recognize copyright laws, the author or authors of
8
- this software dedicate any and all copyright interest in the software to the
9
- public domain. We make this dedication for the benefit of the public at large
10
- and to the detriment of our heirs and successors. We intend this dedication
11
- to be an overt act of relinquishment in perpetuity of all present and future
12
- rights to this software under copyright law.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
18
- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
-
21
- For more information, please refer to <https://unlicense.org>.
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or distribute
4
+ this software, either in source code form or as a compiled binary, for any
5
+ purpose, commercial or non-commercial, and by any means.
6
+
7
+ In jurisdictions that recognize copyright laws, the author or authors of
8
+ this software dedicate any and all copyright interest in the software to the
9
+ public domain. We make this dedication for the benefit of the public at large
10
+ and to the detriment of our heirs and successors. We intend this dedication
11
+ to be an overt act of relinquishment in perpetuity of all present and future
12
+ rights to this software under copyright law.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
18
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ For more information, please refer to <https://unlicense.org>.
@@ -1,99 +1,99 @@
1
- param(
2
- [Parameter(Mandatory = $true)][ValidateSet('monitor', 'present', 'restore')][string]$Action,
3
- [string]$Title = 'DSH-WE-Record',
4
- [int]$Width = 0,
5
- [int]$Height = 0
6
- )
7
-
8
- # Desktop presentation for scene-video capture:
9
- # monitor - print the primary monitor's physical pixel size ("WxH")
10
- # present - hide taskbars, force the Wallpaper Engine record window
11
- # borderless-fullscreen topmost, move the cursor to its centre
12
- # (wcap captures the window under the cursor)
13
- # restore - bring the taskbars back
14
- # Everything is best-effort and reversible; a capture that fails midway must
15
- # still call 'restore' so the user's desktop returns to normal.
16
-
17
- $ErrorActionPreference = 'Stop'
18
-
19
- Add-Type -TypeDefinition @'
20
- using System;
21
- using System.Runtime.InteropServices;
22
- using System.Text;
23
-
24
- public static class SceneCaptureDesktop {
25
- [DllImport("user32.dll")] public static extern bool SetProcessDPIAware();
26
- [DllImport("user32.dll")] public static extern int GetSystemMetrics(int index);
27
- [DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern IntPtr FindWindow(string className, string windowName);
28
- [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hWnd, int command);
29
- [DllImport("user32.dll")] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr after, int x, int y, int width, int height, uint flags);
30
- [DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr hWnd);
31
- [DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y);
32
- [DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr hWnd);
33
- [DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern int GetWindowText(IntPtr hWnd, StringBuilder text, int maxCount);
34
- [DllImport("user32.dll")] public static extern bool EnumWindows(EnumWindowsProc callback, IntPtr lParam);
35
- public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
36
-
37
- public static readonly IntPtr TopMost = new IntPtr(-1);
38
- public const uint ShowWindowFlag = 0x0040;
39
- public const uint KeepPositionFlag = 0x0002;
40
- public const uint KeepSizeFlag = 0x0001;
41
- }
42
- '@
43
-
44
- [SceneCaptureDesktop]::SetProcessDPIAware() | Out-Null
45
-
46
- function Get-TaskbarHandles {
47
- $handles = @()
48
- foreach ($className in @('Shell_TrayWnd', 'Shell_SecondaryTrayWnd')) {
49
- $handle = [SceneCaptureDesktop]::FindWindow($className, $null)
50
- if ($handle -ne [IntPtr]::Zero) { $handles += $handle }
51
- }
52
- return $handles
53
- }
54
-
55
- function Find-RecordWindow([string]$titlePart) {
56
- $script:found = [IntPtr]::Zero
57
- $callback = [SceneCaptureDesktop+EnumWindowsProc]{
58
- param([IntPtr]$hWnd, [IntPtr]$lParam)
59
- if (-not [SceneCaptureDesktop]::IsWindowVisible($hWnd)) { return $true }
60
- $text = New-Object System.Text.StringBuilder 1024
61
- [void][SceneCaptureDesktop]::GetWindowText($hWnd, $text, 1024)
62
- if ($text.ToString().Contains($titlePart)) {
63
- $script:found = $hWnd
64
- return $false
65
- }
66
- return $true
67
- }
68
- [void][SceneCaptureDesktop]::EnumWindows($callback, [IntPtr]::Zero)
69
- return $script:found
70
- }
71
-
72
- switch ($Action) {
73
- 'monitor' {
74
- # 0 = SM_CXSCREEN, 1 = SM_CYSCREEN (primary monitor, physical pixels
75
- # because the process is DPI-aware)
76
- Write-Output ("{0}x{1}" -f [SceneCaptureDesktop]::GetSystemMetrics(0), [SceneCaptureDesktop]::GetSystemMetrics(1))
77
- }
78
- 'present' {
79
- foreach ($handle in (Get-TaskbarHandles)) { [void][SceneCaptureDesktop]::ShowWindow($handle, 0) }
80
- $window = Find-RecordWindow $Title
81
- if ($window -eq [IntPtr]::Zero) { Write-Output 'window-not-found'; exit 2 }
82
- if ($Width -gt 0 -and $Height -gt 0) {
83
- [void][SceneCaptureDesktop]::SetWindowPos($window, [SceneCaptureDesktop]::TopMost, 0, 0, $Width, $Height, [SceneCaptureDesktop]::ShowWindowFlag)
84
- }
85
- else {
86
- $flags = [SceneCaptureDesktop]::KeepPositionFlag -bor [SceneCaptureDesktop]::KeepSizeFlag -bor [SceneCaptureDesktop]::ShowWindowFlag
87
- [void][SceneCaptureDesktop]::SetWindowPos($window, [SceneCaptureDesktop]::TopMost, 0, 0, 0, 0, $flags)
88
- }
89
- [void][SceneCaptureDesktop]::SetForegroundWindow($window)
90
- if ($Width -gt 0 -and $Height -gt 0) {
91
- [void][SceneCaptureDesktop]::SetCursorPos([int]($Width / 2), [int]($Height / 2))
92
- }
93
- Write-Output 'ok'
94
- }
95
- 'restore' {
96
- foreach ($handle in (Get-TaskbarHandles)) { [void][SceneCaptureDesktop]::ShowWindow($handle, 5) }
97
- Write-Output 'ok'
98
- }
99
- }
1
+ param(
2
+ [Parameter(Mandatory = $true)][ValidateSet('monitor', 'present', 'restore')][string]$Action,
3
+ [string]$Title = 'DSH-WE-Record',
4
+ [int]$Width = 0,
5
+ [int]$Height = 0
6
+ )
7
+
8
+ # Desktop presentation for scene-video capture:
9
+ # monitor - print the primary monitor's physical pixel size ("WxH")
10
+ # present - hide taskbars, force the Wallpaper Engine record window
11
+ # borderless-fullscreen topmost, move the cursor to its centre
12
+ # (wcap captures the window under the cursor)
13
+ # restore - bring the taskbars back
14
+ # Everything is best-effort and reversible; a capture that fails midway must
15
+ # still call 'restore' so the user's desktop returns to normal.
16
+
17
+ $ErrorActionPreference = 'Stop'
18
+
19
+ Add-Type -TypeDefinition @'
20
+ using System;
21
+ using System.Runtime.InteropServices;
22
+ using System.Text;
23
+
24
+ public static class SceneCaptureDesktop {
25
+ [DllImport("user32.dll")] public static extern bool SetProcessDPIAware();
26
+ [DllImport("user32.dll")] public static extern int GetSystemMetrics(int index);
27
+ [DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern IntPtr FindWindow(string className, string windowName);
28
+ [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hWnd, int command);
29
+ [DllImport("user32.dll")] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr after, int x, int y, int width, int height, uint flags);
30
+ [DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr hWnd);
31
+ [DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y);
32
+ [DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr hWnd);
33
+ [DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern int GetWindowText(IntPtr hWnd, StringBuilder text, int maxCount);
34
+ [DllImport("user32.dll")] public static extern bool EnumWindows(EnumWindowsProc callback, IntPtr lParam);
35
+ public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
36
+
37
+ public static readonly IntPtr TopMost = new IntPtr(-1);
38
+ public const uint ShowWindowFlag = 0x0040;
39
+ public const uint KeepPositionFlag = 0x0002;
40
+ public const uint KeepSizeFlag = 0x0001;
41
+ }
42
+ '@
43
+
44
+ [SceneCaptureDesktop]::SetProcessDPIAware() | Out-Null
45
+
46
+ function Get-TaskbarHandles {
47
+ $handles = @()
48
+ foreach ($className in @('Shell_TrayWnd', 'Shell_SecondaryTrayWnd')) {
49
+ $handle = [SceneCaptureDesktop]::FindWindow($className, $null)
50
+ if ($handle -ne [IntPtr]::Zero) { $handles += $handle }
51
+ }
52
+ return $handles
53
+ }
54
+
55
+ function Find-RecordWindow([string]$titlePart) {
56
+ $script:found = [IntPtr]::Zero
57
+ $callback = [SceneCaptureDesktop+EnumWindowsProc]{
58
+ param([IntPtr]$hWnd, [IntPtr]$lParam)
59
+ if (-not [SceneCaptureDesktop]::IsWindowVisible($hWnd)) { return $true }
60
+ $text = New-Object System.Text.StringBuilder 1024
61
+ [void][SceneCaptureDesktop]::GetWindowText($hWnd, $text, 1024)
62
+ if ($text.ToString().Contains($titlePart)) {
63
+ $script:found = $hWnd
64
+ return $false
65
+ }
66
+ return $true
67
+ }
68
+ [void][SceneCaptureDesktop]::EnumWindows($callback, [IntPtr]::Zero)
69
+ return $script:found
70
+ }
71
+
72
+ switch ($Action) {
73
+ 'monitor' {
74
+ # 0 = SM_CXSCREEN, 1 = SM_CYSCREEN (primary monitor, physical pixels
75
+ # because the process is DPI-aware)
76
+ Write-Output ("{0}x{1}" -f [SceneCaptureDesktop]::GetSystemMetrics(0), [SceneCaptureDesktop]::GetSystemMetrics(1))
77
+ }
78
+ 'present' {
79
+ foreach ($handle in (Get-TaskbarHandles)) { [void][SceneCaptureDesktop]::ShowWindow($handle, 0) }
80
+ $window = Find-RecordWindow $Title
81
+ if ($window -eq [IntPtr]::Zero) { Write-Output 'window-not-found'; exit 2 }
82
+ if ($Width -gt 0 -and $Height -gt 0) {
83
+ [void][SceneCaptureDesktop]::SetWindowPos($window, [SceneCaptureDesktop]::TopMost, 0, 0, $Width, $Height, [SceneCaptureDesktop]::ShowWindowFlag)
84
+ }
85
+ else {
86
+ $flags = [SceneCaptureDesktop]::KeepPositionFlag -bor [SceneCaptureDesktop]::KeepSizeFlag -bor [SceneCaptureDesktop]::ShowWindowFlag
87
+ [void][SceneCaptureDesktop]::SetWindowPos($window, [SceneCaptureDesktop]::TopMost, 0, 0, 0, 0, $flags)
88
+ }
89
+ [void][SceneCaptureDesktop]::SetForegroundWindow($window)
90
+ if ($Width -gt 0 -and $Height -gt 0) {
91
+ [void][SceneCaptureDesktop]::SetCursorPos([int]($Width / 2), [int]($Height / 2))
92
+ }
93
+ Write-Output 'ok'
94
+ }
95
+ 'restore' {
96
+ foreach ($handle in (Get-TaskbarHandles)) { [void][SceneCaptureDesktop]::ShowWindow($handle, 5) }
97
+ Write-Output 'ok'
98
+ }
99
+ }
@@ -1,24 +1,24 @@
1
- Add-Type -TypeDefinition @'
2
- using System;
3
- using System.Runtime.InteropServices;
4
-
5
- public static class WcapHotkey {
6
- [DllImport("user32.dll")]
7
- private static extern void keybd_event(byte key, byte scan, uint flags, UIntPtr extraInfo);
8
-
9
- public static void Send() {
10
- const uint KeyUp = 0x0002;
11
- const byte Control = 0x11;
12
- const byte LeftWindows = 0x5B;
13
- const byte PrintScreen = 0x2C;
14
- keybd_event(Control, 0, 0, UIntPtr.Zero);
15
- keybd_event(LeftWindows, 0, 0, UIntPtr.Zero);
16
- keybd_event(PrintScreen, 0, 0, UIntPtr.Zero);
17
- keybd_event(PrintScreen, 0, KeyUp, UIntPtr.Zero);
18
- keybd_event(LeftWindows, 0, KeyUp, UIntPtr.Zero);
19
- keybd_event(Control, 0, KeyUp, UIntPtr.Zero);
20
- }
21
- }
22
- '@
23
-
24
- [WcapHotkey]::Send()
1
+ Add-Type -TypeDefinition @'
2
+ using System;
3
+ using System.Runtime.InteropServices;
4
+
5
+ public static class WcapHotkey {
6
+ [DllImport("user32.dll")]
7
+ private static extern void keybd_event(byte key, byte scan, uint flags, UIntPtr extraInfo);
8
+
9
+ public static void Send() {
10
+ const uint KeyUp = 0x0002;
11
+ const byte Control = 0x11;
12
+ const byte LeftWindows = 0x5B;
13
+ const byte PrintScreen = 0x2C;
14
+ keybd_event(Control, 0, 0, UIntPtr.Zero);
15
+ keybd_event(LeftWindows, 0, 0, UIntPtr.Zero);
16
+ keybd_event(PrintScreen, 0, 0, UIntPtr.Zero);
17
+ keybd_event(PrintScreen, 0, KeyUp, UIntPtr.Zero);
18
+ keybd_event(LeftWindows, 0, KeyUp, UIntPtr.Zero);
19
+ keybd_event(Control, 0, KeyUp, UIntPtr.Zero);
20
+ }
21
+ }
22
+ '@
23
+
24
+ [WcapHotkey]::Send()