@alexpeng/dsh-custom-plugin 0.10.0 → 0.11.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,49 @@ All notable changes to this project are documented here. The format loosely
4
4
  follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions
5
5
  follow [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## 0.11.0 — 2026-12-03
8
+
9
+ #### Added
10
+
11
+ - **背景动效新增「鲸鱼」字符预设**:一条由字符画成的鲸鱼会缓慢游过整页,
12
+ 而不是又一层抽象纹理。
13
+ - 鲸鱼轮廓由一条手调的多边形轮廓在模块加载时栅格化成字符掩码:外缘最深、
14
+ 背脊次之、腹部最浅,并带一格抖动;眼睛是身体里挖空的 2×2 格,外圈再深
15
+ 一档;嘴是下缘内侧的一道留白,另有一只胸鳍。
16
+ - 尾巴按 0..1 的权重上下摆动,身体有缓慢的浮沉;鲸鱼游出左边缘后会从右侧
17
+ 以新的深度重新进入。
18
+ - 海面是三条断续的涌浪线加低频水面斑,不是整幅正弦线——连续的长线看起来
19
+ 像刻度尺。
20
+ - 安装 2 秒后喷第一道水柱,之后每 8–13 秒一次;尾巴后方每隔 1.1 秒冒一个
21
+ 气泡,点击页面会在落点留下几个气泡。粒子池固定 64 格,不逐帧分配。
22
+ - 鼠标靠近时鲸鱼会游快一点并向另一侧让开;点击鲸鱼附近会让它摆尾加速并
23
+ 喷一次水柱。
24
+ - 鲸鱼的每一格都标记为强调,且通过预设新增的 `emphasisFull` 标记保持
25
+ 自身墨色,不再被「避让正文」压到 65% 的强调下限:图案类预设与纹理类
26
+ 预设的淡出规则不同,前者需要保持可辨;海面与自动气泡依旧按普通纹理压淡。
27
+ - 预设参数:字符集 `blocks`、密度 0.65、24 fps、浓度 0.68、墨色 1.4
28
+ (2026-12-03 Desktop 实装截图校准:1.15/0.60 在正文内容面后读作幽灵,
29
+ 提高后鲸鱼在静止画面里清晰可辨,正文对比度不受影响);五项参数都带可调
30
+ 范围,默认值仍落在各自范围中点。
31
+ - 背景动效面板新增「鲸鱼」预设按钮与一段交互说明;`BG_FX_ASCII_PRESETS`、
32
+ 状态文件的预设白名单与相关测试同步扩展。
33
+ - **背景动效新增「水母」字符预设**:第二套可辨识图案,一只水母从页面下方
34
+ 缓缓升起,而不是抽象纹理。
35
+ - 伞盖由半椭圆在模块加载时栅格化成同心层次的字符环:外缘最深,向内逐级
36
+ 变浅,中心保留一点半透明;底边是一圈波浪状裙边。
37
+ - 六条触手按各自的相位、幅度与长度垂下,`| / \ ~` 随水流摆动;伞盖按
38
+ 1.15 rad/s 脉动,触手在收缩时回缩,读起来是在游动。
39
+ - 周围有稀疏的深海浮游点与点击产生的浮游微光;鼠标靠近会游得更快并收伞,
40
+ 点击水母附近会强制收缩一次。
41
+ - 水母的伞盖与触手都标记为强调,并沿用 `emphasisFull` 保持自身墨色;
42
+ 浮游点按普通纹理压淡。
43
+ - 预设参数:字符集 `blocks`、密度 0.65、24 fps、浓度 0.66、墨色 1.35;
44
+ 五项参数都带可调范围,默认值落在各自范围中点。
45
+ - 背景动效面板新增「水母」预设按钮与交互说明;`BG_FX_ASCII_PRESETS`、
46
+ 状态文件白名单与相关测试同步扩展。
47
+ - 修复两处随日期腐化的测试用例:用量账本只保留 90 天,而用例把日期写死在
48
+ 2026-08/09,现已改为按当天日期生成,避免保留窗口过期后误报。
49
+
7
50
  ## 0.10.0 — 2026-11-16
8
51
 
9
52
  #### Fixed
package/README.i18n.yaml CHANGED
@@ -3,5 +3,5 @@
3
3
  # after editing either side, bring the other along and re-record the hashes:
4
4
  # git hash-object --path README.md README.md
5
5
  # git hash-object --path README.zh.md README.zh.md
6
- README.md: 0c6afb33121cfd0fb474f14b0bd726266e9c21ca
7
- README.zh.md: dd6aaf15840fef947bd6da1b5871e1faf73e9c32
6
+ README.md: 3ab2507bf773013e792d3869f730e8718f250d17
7
+ README.zh.md: 74f9119d30b6bf25402bf44f2649b41e3ec43571
package/README.md CHANGED
@@ -55,7 +55,7 @@ Weather FX is shown in dark mode. Usage history, backup-import previews, session
55
55
  - **Weather FX**: canvas-rendered, pointer-transparent one-click overlays — falling snow, cinematic rain (three depth layers with splashes), and drifting sakura petals; turning it off clears the canvas.
56
56
  - **Glass**: frosted glass on every Custom surface, or liquid glass (a rounded-rect SDF displacement map refracts all four edges, with a restrained blur + saturation, a 1px specular rim and the host fill at ~70% so text over large panels stays readable; engines without SVG-referencing backdrop filters fall back to frosted). When a background renderer is live, the glass switches to a centre-solid / edge-clear radial fill and a contrast-boosted backdrop so the animation stays visible at the rim without hurting the copy. A global-glass option extends the same treatment to dialogs, menus, tooltips, listboxes and the system settings window — displaced as well in liquid mode.
57
57
  - **Native surfaces**: the header's 个性化 button opens only a compact appearance popover anchored to it — flipped upward when the viewport runs short, never a draggable window — while folders, prompts, search, export, Mermaid, efficiency, usage and data management all live in the 个性化 section of DSH Settings. Popovers, menus and settings cards use the host's menu material, elevation shadows, radius scale and type scale, with 150–220 ms open/close motion that starts from the anchor's edge (toasts also animate out in place) and respects the system's reduced-motion preference.
58
- - **Background motion**: a full-page animated layer beneath the content, in two independent tiers — ASCII glyph grids (`flow`, `rain`, `ocean`, `starfield`, `ripple`, plus the zero-animation `static`) and 光影 (the shader tier: one full-screen WebGL1 shader per style, `liquid`, `grain`; a page without WebGL falls back to the ASCII tier and says so). The panel switches tier and preset, tunes density, speed, frame rate, font size and opacity — intensity instead of font/opacity on the shader tier — and "restore defaults" resets only those six parameter overrides back to "follow the current preset"; the tier and preset themselves are never changed by that button, and the panel says so next to it. Every slider clamps to the active preset's declared range. Ink strength is a separate three-step choice (柔和 / 标准 / 强烈) that scales the ink step without touching density, speed or frame rate, and the **avoid-the-copy** switch (避让正文, on by default) fades the texture behind the reading column while the page edges keep full strength — turning it off makes the whole page uniform. While the effect is on, the shell's page fills become translucent so the texture shows; with glass on, cards and popovers become glass over that texture — the centre keeps enough tint for the copy while the edges reveal the animation — and dialogs stay opaque. `ocean`, `flow`, `rain`, `ripple` and `starfield` respond to the pointer. The `ocean` preset lives inside the conversation column, so the water is visible behind the messages; drag to leave ripples, click for a splash, and the fish school scatters and regroups. `flow` stays a page-level background, but the pointer now stirs its fog: dragging bends and thickens the noise along the path, and a click pushes a ring through it. `rain` reads the pointer as wind: a flick slants the falling trails and a click parts the curtain to both sides, then it slowly closes again. In `ripple`, a click drops a new ring where it lands and a drag leaves a trail of small ones. `starfield` keeps its sparse character — a press lights a small burst of stars and a drag scatters a thin trail, both fading out in about a second. The shader tier's `liquid` also follows the pointer: moving it twists the ink cloud and a click sends a ring outward, while `grain` stays a static speck field by design. The other presets are still page-level backgrounds.
58
+ - **Background motion**: a full-page animated layer beneath the content, in two independent tiers — ASCII glyph grids (`flow`, `rain`, `ocean`, `whale`, `jelly`, `starfield`, `ripple`, plus the zero-animation `static`) and 光影 (the shader tier: one full-screen WebGL1 shader per style, `liquid`, `grain`; a page without WebGL falls back to the ASCII tier and says so). The panel switches tier and preset, tunes density, speed, frame rate, font size and opacity — intensity instead of font/opacity on the shader tier — and "restore defaults" resets only those six parameter overrides back to "follow the current preset"; the tier and preset themselves are never changed by that button, and the panel says so next to it. Every slider clamps to the active preset's declared range. Ink strength is a separate three-step choice (柔和 / 标准 / 强烈) that scales the ink step without touching density, speed or frame rate, and the **avoid-the-copy** switch (避让正文, on by default) fades the texture behind the reading column while the page edges keep full strength — turning it off makes the whole page uniform. While the effect is on, the shell's page fills become translucent so the texture shows; with glass on, cards and popovers become glass over that texture — the centre keeps enough tint for the copy while the edges reveal the animation — and dialogs stay opaque. `ocean`, `flow`, `rain`, `ripple`, `starfield`, `whale` and `jelly` respond to the pointer. The `ocean` preset lives inside the conversation column, so the water is visible behind the messages; drag to leave ripples, click for a splash, and the fish school scatters and regroups. `whale` is the one preset whose subject is a picture: a glyph-built whale crosses the page, spouts above its head every few seconds and leaves a bubble trail; the pointer makes it speed up and bank away, and a click startles it into a tail beat and a spout. `jelly` raises a jellyfish from the bottom of the page: the bell pulses open and closed, the tendrils trail in the water, the pointer makes it rise faster and contract, and a click lights a small ring of plankton sparks. `flow` stays a page-level background, but the pointer now stirs its fog: dragging bends and thickens the noise along the path, and a click pushes a ring through it. `rain` reads the pointer as wind: a flick slants the falling trails and a click parts the curtain to both sides, then it slowly closes again. In `ripple`, a click drops a new ring where it lands and a drag leaves a trail of small ones. `starfield` keeps its sparse character — a press lights a small burst of stars and a drag scatters a thin trail, both fading out in about a second. The shader tier's `liquid` also follows the pointer: moving it twists the ink cloud and a click sends a ring outward, while `grain` stays a static speck field by design. The other presets are still page-level backgrounds.
59
59
 
60
60
  <img src="https://github.com/AlexPeng07/dsh-custom-plugin/raw/main/docs/background-motion-panel.png" alt="Background motion panel with the character tier active" width="360">
61
61
 
@@ -234,7 +234,7 @@ Appearance and feature toggles (the `cfg` field, all with defaults):
234
234
  |---|---|---|
235
235
  | `bg` | `天青灰` | `default` (no color) / one of the 20 palette names (both themes; a stored `aurora` migrates to `default`) |
236
236
  | `bgFx` | `none` | `none` / `ascii` / `shader` (labelled 关闭 / 字符 / 光影 in the panel); the shader tier falls back to ASCII when the page has no WebGL |
237
- | `bgFxPreset` | `flow` | the active tier's preset: `flow`/`rain`/`ocean`/`starfield`/`ripple`/`static` for ASCII, `liquid`/`grain` for the shader tier; an id from the other tier resets to that tier's default |
237
+ | `bgFxPreset` | `flow` | the active tier's preset: `flow`/`rain`/`ocean`/`whale`/`jelly`/`starfield`/`ripple`/`static` for ASCII, `liquid`/`grain` for the shader tier; an id from the other tier resets to that tier's default |
238
238
  | `bgStrength` | `standard` | ink strength `soft` / `standard` / `strong` (柔和 / 标准 / 强烈), multipliers 0.45 / 0.62 / 0.9; scales the ink step only, density/speed/frame rate are unaffected. `standard` is the shipped default and matches the depth the earlier build used for 柔和 |
239
239
  | `bgFocus` | `true` | 避让正文: fade the texture behind the reading column and keep the page edges dense; `false` makes the whole page uniform and takes the mask out of the render pipeline |
240
240
  | `bgDensity`, `bgSpeed`, `bgFps`, `bgFontPx`, `bgOpacity`, `bgIntensity` | `-1` | panel overrides; `-1` follows the preset, anything else is clamped to the active preset's declared range (ASCII uses five, shader uses density/speed/fps/intensity) |
package/README.zh.md CHANGED
@@ -55,7 +55,7 @@ DeepSeek Harness(DSH)Web GUI 的 Custom 便利套件:个性化外观、天
55
55
  - **天气特效**:画布渲染、不挡交互,一键切换——飘雪、电影感雨滴(三层景深 + 地面溅起)、樱花飘落;关闭时自动清空画布。
56
56
  - **玻璃效果**:所有 Custom 面板默认毛玻璃;可切换液态玻璃(圆角矩形 SDF 位移贴图让四条边对称折射,配合克制的模糊提饱和、1px 高光边与约 70% 宿主填充,大面积面板文字仍清晰;不支持 SVG 位移滤镜的引擎自动回退毛玻璃)。背景动效开启时,玻璃改用「中心实、边缘透」的径向填充与提高对比度的滤镜链,让动画纹理在玻璃边缘继续可见,同时保持正文可读。「全局浮层玻璃」对弹窗、菜单、提示框、下拉框与系统设置窗统一加玻璃质感,液态模式下浮层同样位移折射。
57
57
  - **原生入口**:头部「个性化」按钮只打开一个紧凑的外观浮层,锚定在按钮下方、空间不足时自动上翻,不再有可拖拽窗口;项目、提示词、搜索、导出、Mermaid、效率、额度与数据管理全部收进 dsh 设置页的「个性化」分区。浮层、菜单与设置卡片统一使用宿主菜单材质、抬升阴影、圆角与字号阶梯,开合有 150–220ms 的淡入/缩放动效(浮层从锚定方向进入),通知在原位退出,并遵循系统的「减少动态效果」设置。
58
- - **背景动效**:内容层下方的整页动态背景,两套互斥档位——字符档(`flow` / `rain` / `ocean` / `starfield` / `ripple`,以及零动画的 `static`)与光影档(每套风格一张全屏着色器:`liquid` / `grain`;页面不支持 WebGL 时回退字符档并提示)。面板里切换档位与预设,可调密度、速度、帧率、字号与浓度(光影档为强度,字号/浓度不适用),「恢复默认参数」只把六项参数恢复为「跟随预设」,不改变动效档位与预设(按钮旁与提示里都写明了这一点);滑块值一律 clamp 到当前预设声明的范围。墨色强度是另一条独立的轴(柔和 / 标准 / 强烈),只改墨色深浅、不动密度、速度与帧率;「避让正文」开关默认打开,让正文读取列更淡、页面四周保持浓淡,关掉则整页均匀。动效开启时页面底色会调成半透明以便透出纹理;开启玻璃后卡片和浮层会变成覆盖在这层纹理上的玻璃——中心保留足够填充保证可读,边缘透出持续运动的动画,对话框保持不透明。`ocean`、`flow`、`rain`、`ripple` 与 `starfield` 都能响应鼠标。`ocean` 铺在会话中栏内部,水面直接出现在消息背后:拖动会留下涟漪,点击溅起水花,鱼群会惊散后重新聚拢。`flow` 仍是整页背景,但指针现在会搅动雾面:拖动沿途扭曲并加浓噪声,点击推开一圈涟漪。`rain` 把指针当作风:划过会把雨丝吹斜,点击向两侧拨开雨帘,随后慢慢合拢。`ripple` 的点击会在落点漾开一圈新涟漪,拖动沿途留下小水纹。`starfield` 保持稀疏:点击点亮一小片星尘,拖动撒下一条淡淡星光,两者约一秒后暗去。光影档的 `liquid` 也会跟随鼠标:划过会卷动墨云,点击从落点扩散出一圈涟漪;`grain` 按设计保持静态噪点。其余预设仍是整页背景。
58
+ - **背景动效**:内容层下方的整页动态背景,两套互斥档位——字符档(`flow` / `rain` / `ocean` / `whale` / `jelly` / `starfield` / `ripple`,以及零动画的 `static`)与光影档(每套风格一张全屏着色器:`liquid` / `grain`;页面不支持 WebGL 时回退字符档并提示)。面板里切换档位与预设,可调密度、速度、帧率、字号与浓度(光影档为强度,字号/浓度不适用),「恢复默认参数」只把六项参数恢复为「跟随预设」,不改变动效档位与预设(按钮旁与提示里都写明了这一点);滑块值一律 clamp 到当前预设声明的范围。墨色强度是另一条独立的轴(柔和 / 标准 / 强烈),只改墨色深浅、不动密度、速度与帧率;「避让正文」开关默认打开,让正文读取列更淡、页面四周保持浓淡,关掉则整页均匀。动效开启时页面底色会调成半透明以便透出纹理;开启玻璃后卡片和浮层会变成覆盖在这层纹理上的玻璃——中心保留足够填充保证可读,边缘透出持续运动的动画,对话框保持不透明。`ocean`、`flow`、`rain`、`ripple`、`starfield`、`whale` 与 `jelly` 都能响应鼠标。`ocean` 铺在会话中栏内部,水面直接出现在消息背后:拖动会留下涟漪,点击溅起水花,鱼群会惊散后重新聚拢。`whale` 是一条由字符画成的鲸鱼横游整页:指针靠近会让它游快并向另一侧让开,点击会让它摆尾喷水;它自己每隔一阵也会在头顶喷一道水柱,尾巴后面跟着气泡。`jelly` 是一只从页面下方缓缓升起的水母:伞盖随脉动一开一合、触手随水飘动,鼠标靠近会游得更快并收伞,点击会在落点亮起一小圈浮游微光。`flow` 仍是整页背景,但指针现在会搅动雾面:拖动沿途扭曲并加浓噪声,点击推开一圈涟漪。`rain` 把指针当作风:划过会把雨丝吹斜,点击向两侧拨开雨帘,随后慢慢合拢。`ripple` 的点击会在落点漾开一圈新涟漪,拖动沿途留下小水纹。`starfield` 保持稀疏:点击点亮一小片星尘,拖动撒下一条淡淡星光,两者约一秒后暗去。光影档的 `liquid` 也会跟随鼠标:划过会卷动墨云,点击从落点扩散出一圈涟漪;`grain` 按设计保持静态噪点。其余预设仍是整页背景。
59
59
 
60
60
  <img src="https://github.com/AlexPeng07/dsh-custom-plugin/raw/main/docs/background-motion-panel.png" alt="背景动效面板(字符档)" width="360">
61
61
 
@@ -217,7 +217,7 @@ dsh plugin --profile web add link:F:/dsh-plugin-dev
217
217
  |---|---|---|
218
218
  | `bg` | `天青灰` | `default`(无颜色)/ 20 组调色板名之一(深浅色通用;旧存档的 `aurora` 自动迁移为 `default`) |
219
219
  | `bgFx` | `none` | `none` / `ascii` / `shader`(面板上的「关闭 / 字符 / 光影」);光影档在不支持 WebGL 的页面回退字符档 |
220
- | `bgFxPreset` | `flow` | 当前档位的预设:字符档 `flow`/`rain`/`ocean`/`starfield`/`ripple`/`static`,光影档 `liquid`/`grain`;另一档的 id 会重置为该档默认值 |
220
+ | `bgFxPreset` | `flow` | 当前档位的预设:字符档 `flow`/`rain`/`ocean`/`whale`/`jelly`/`starfield`/`ripple`/`static`,光影档 `liquid`/`grain`;另一档的 id 会重置为该档默认值 |
221
221
  | `bgStrength` | `standard` | 墨色强度 `soft` / `standard` / `strong`(柔和 / 标准 / 强烈),倍率 0.45 / 0.62 / 0.9;只缩放墨色阶,密度/速度/帧率不受影响。默认「标准」,深度与此前版本的「柔和」一致 |
222
222
  | `bgFocus` | `true` | 避让正文:正文读取列更淡、页面四周保持浓淡;`false` 时整页均匀,遮罩完全退出渲染管线 |
223
223
  | `bgDensity`、`bgSpeed`、`bgFps`、`bgFontPx`、`bgOpacity`、`bgIntensity` | `-1` | 面板覆盖值;`-1` 表示跟随预设,其余值一律 clamp 到当前预设声明的范围(字符档用五项,光影档用密度/速度/帧率/强度) |