beauticode-dsh 1.0.28 → 1.0.30

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.zh-CN.md CHANGED
@@ -64,3 +64,12 @@ npx @deepseek-ai/dsh web
64
64
  4. 打开页面后在「设置」里点「背景」,或输入 `/bg <本机绝对路径>`,或直接跟 AI 说把某个视频/图片设为背景。
65
65
 
66
66
  安全边界:DSH Web 必须绑定本机回环地址;控制端点需要随机令牌;媒体 URL 仅允许带令牌的回环 HTTP 地址;浏览器回执只接受同源请求。
67
+
68
+ ## 1.0.29 背景修复
69
+
70
+ 画窗现在响应背景磨砂和阴影滑块,并随 DSH 深浅色切换遮罩。背景模式保留宿主的渐隐滚动内容,修复长思考展开后的持续抖动(#86、#87)。
71
+
72
+
73
+ ## 1.0.30:插件页可读性
74
+
75
+ 基于本地正式包 1.0.29,加入 #92 的局部实色底板,并保留主分支已合并的问答、计划及审批面板保护。DSH Web 和官方 Desktop 共用同一脚本;插件标题、分组、卡片、详情、配置及加载/空/错误状态受保护,分组间隙保留壁纸。沿用「功能面板不透明」开关,关闭保护或清除背景即可恢复宿主效果;说明文字使用宿主 secondary 标签色。不改变偏好、鉴权和存储格式。回滚可恢复旧包,无需数据迁移。
package/atmosphere.js CHANGED
@@ -74,6 +74,11 @@
74
74
  #beauticode-gallery-bg{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#0b1018}
75
75
  #beauticode-gallery-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;display:block;pointer-events:none;z-index:0;image-rendering:auto;-webkit-backface-visibility:hidden}
76
76
  #beauticode-gallery-bg canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;mix-blend-mode:soft-light;opacity:.32}
77
+ /* Gallery replaces the ordinary media stage: consume the same preferences
78
+ here, with the dim layer above water highlights and below foreground UI (#86). */
79
+ html[data-bc-gallery="true"][data-bc-bg-blur="true"] #beauticode-gallery-bg img{filter:blur(var(--bc-bg-blur,0px))}
80
+ html[data-bc-gallery="true"][data-bc-dim-user="true"] #beauticode-gallery-bg::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:rgba(0,0,0,var(--bc-dim))}
81
+ html[data-bc-gallery="true"][data-bc-dim-user="true"][data-bc-resolved-tone="light"] #beauticode-gallery-bg::after{background:rgba(255,255,255,var(--bc-dim))}
77
82
  html[data-bc-gallery="true"] #beauticode-bg-stage{background:transparent!important}
78
83
  html[data-bc-gallery="true"] #beauticode-bg-stage::after{display:none!important;background:transparent!important}
79
84
  html[data-bc-gallery="true"],html[data-bc-gallery="true"] body{background:transparent!important}
@@ -92,7 +97,8 @@ html[data-bc-resolved-tone="light"][data-bc-gallery="true"] body{
92
97
  --dsw-specific-sidebar-fill:rgba(255,255,255,.36);
93
98
  }
94
99
  html[data-bc-gallery="true"] #root{position:relative;z-index:1;background:transparent!important}
95
- html[data-bc-gallery="true"] [class*="_fade"]{display:none!important}
100
+ /* Native fade classes belong to scroll content, not decorative overlays.
101
+ Hiding them feeds zero geometry back into DSH's ResizeObserver loop (#87). */
96
102
  html[data-bc-gallery="true"] #beauticode-bg-stage img,
97
103
  html[data-bc-gallery="true"] #beauticode-bg-stage video{opacity:0!important}
98
104
  html[data-bc-fish="true"] #root{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
package/client.js CHANGED
@@ -210,7 +210,8 @@ html[data-bc-bg-blur="true"] #beauticode-bg-stage .beauticode-media-slot video{
210
210
  }
211
211
  @media (prefers-reduced-motion:reduce){#beauticode-bg-stage .beauticode-media-slot,#beauticode-bg-stage .beauticode-media-slot img,#beauticode-bg-stage .beauticode-media-slot video{transition:none!important}}
212
212
  html[data-bc-active="true"] #root{position:relative;z-index:1;background:transparent!important}
213
- html[data-bc-active="true"] [class*="_fade"]{display:none!important}
213
+ /* Preserve DSH's native fading scroll bodies; hiding them causes the
214
+ ResizeObserver to alternate content between visible and zero height (#87). */
214
215
  html[data-bc-fish="true"] #root{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
215
216
  `;
216
217
  document.head.append(style);
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
- {
2
- "name": "beauticode-dsh",
3
- "version": "1.0.28",
4
- "description": "Cordis plugin: image/video backgrounds for DeepSeek Harness Web and Desktop.",
5
- "type": "module",
6
- "main": "./index.mjs",
7
- "bin": {
8
- "beauticode-dsh": "bin/beauticode-dsh"
9
- },
10
- "exports": {
11
- ".": {
12
- "import": "./index.mjs"
13
- }
14
- },
15
- "files": [
16
- "index.mjs",
17
- "browser-injection.mjs",
18
- "transport.js",
19
- "client.js",
20
- "readability.js",
21
- "console.js",
22
- "gallery.js",
23
- "gallery-host.mjs",
24
- "skin-center.json",
25
- "atmosphere.js",
26
- "presets.mjs",
27
- "agent.mjs",
28
- "control-client.mjs",
29
- "host-apply.mjs",
30
- "ui-host.mjs",
31
- "cli.js",
32
- "bin/beauticode-dsh",
33
- "cordis.patch.yml",
34
- "vendor",
35
- "themes"
36
- ],
37
- "dsh": {
38
- "bundle": {
39
- "patch": "./cordis.patch.yml"
40
- }
41
- },
42
- "publishConfig": {
43
- "access": "public"
44
- },
45
- "keywords": [
46
- "dsh",
47
- "dsh-plugin",
48
- "deepseek",
49
- "deepseek-harness",
50
- "background",
51
- "wallpaper"
52
- ],
53
- "repository": {
54
- "type": "git",
55
- "url": "git+https://github.com/starsstreaming/beautiCode.git",
56
- "directory": "integrations/deepseek-harness"
57
- },
58
- "engines": {
59
- "node": ">=22"
60
- },
61
- "license": "MIT"
62
- }
1
+ {
2
+ "name": "beauticode-dsh",
3
+ "version": "1.0.30",
4
+ "description": "Cordis plugin: image/video backgrounds for DeepSeek Harness Web and Desktop.",
5
+ "type": "module",
6
+ "main": "./index.mjs",
7
+ "bin": {
8
+ "beauticode-dsh": "bin/beauticode-dsh"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "import": "./index.mjs"
13
+ }
14
+ },
15
+ "files": [
16
+ "index.mjs",
17
+ "browser-injection.mjs",
18
+ "transport.js",
19
+ "client.js",
20
+ "readability.js",
21
+ "console.js",
22
+ "gallery.js",
23
+ "gallery-host.mjs",
24
+ "skin-center.json",
25
+ "atmosphere.js",
26
+ "presets.mjs",
27
+ "agent.mjs",
28
+ "control-client.mjs",
29
+ "host-apply.mjs",
30
+ "ui-host.mjs",
31
+ "cli.js",
32
+ "bin/beauticode-dsh",
33
+ "cordis.patch.yml",
34
+ "vendor",
35
+ "themes"
36
+ ],
37
+ "dsh": {
38
+ "bundle": {
39
+ "patch": "./cordis.patch.yml"
40
+ }
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "keywords": [
46
+ "dsh",
47
+ "dsh-plugin",
48
+ "deepseek",
49
+ "deepseek-harness",
50
+ "background",
51
+ "wallpaper"
52
+ ],
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "git+https://github.com/starsstreaming/beautiCode.git",
56
+ "directory": "integrations/deepseek-harness"
57
+ },
58
+ "engines": {
59
+ "node": ">=22"
60
+ },
61
+ "license": "MIT"
62
+ }
package/readability.js CHANGED
@@ -35,7 +35,31 @@ html[data-bc-active="true"][data-bc-resolved-tone="light"] body{
35
35
  Semantic roles and data-composer-card are shipped DSH contracts, not hashes. */
36
36
  html[data-bc-active="true"]:not([data-bc-readable-surfaces="false"]) :is(
37
37
  [role="dialog"],[role="alertdialog"],[role="menu"],[role="listbox"],
38
- [role="tooltip"],[data-composer-card]
38
+ [role="tooltip"],[data-composer-card],
39
+ /* DSH pending-interaction panels — user questions, plan review and approval —
40
+ are NOT dialogs. Each is a transparent flex frame wrapping an inner card
41
+ that paints var(--dsw-specific-input-major), the very token this bridge
42
+ re-expresses as translucent, so the transcript bled through the question
43
+ card. Target the inner card by the stable data-* key on its frame (the
44
+ class names are CSS-module hashes and must not be relied on): painting the
45
+ frame instead would produce a solid bar across its side padding. */
46
+ [data-question-key] > section,
47
+ [data-plan-review-key] > section,
48
+ [data-approval-key] > div,
49
+ /* The standalone plugin page has separate reading regions. Keep its frame
50
+ transparent so wallpaper remains visible between groups. Empty/offline
51
+ states are direct paragraphs; failures wrap an alert and retry control. */
52
+ [data-plugin-panel] > header,
53
+ [data-plugin-panel] [data-plugin-group],
54
+ [data-plugin-panel] [data-plugin-detail],
55
+ [data-plugin-panel] [data-plugin-item-detail],
56
+ [data-plugin-panel] [data-plugin-row-detail],
57
+ [data-plugin-panel] [data-plugin-config],
58
+ [data-plugin-panel] [data-plugin-loading],
59
+ [data-plugin-panel] > p,
60
+ [data-plugin-panel] > div:has(> [role="alert"]),
61
+ [data-plugin-panel] [data-plugin-package],
62
+ [data-plugin-panel] [data-plugin-item]
39
63
  ){
40
64
  --dsw-alias-bg-base:var(--bc-readable-fill);
41
65
  --dsw-alias-bg-layer-1:var(--bc-readable-fill);
@@ -47,6 +71,17 @@ html[data-bc-active="true"]:not([data-bc-readable-surfaces="false"]) :is(
47
71
  --dsw-alias-tooltip-bg:var(--bc-readable-fill);
48
72
  background-color:var(--bc-readable-fill);
49
73
  }
74
+ /* Keep host geometry and radii: groups have no padding, so adding a radius
75
+ would expose wallpaper behind the first letter of their heading. */
76
+ html[data-bc-active="true"]:not([data-bc-readable-surfaces="false"]) [data-plugin-panel]{
77
+ --dsw-alias-label-tertiary:var(--dsw-alias-label-secondary);
78
+ --dsw-alias-label-caption:var(--dsw-alias-label-secondary);
79
+ }
80
+ /* Preserve the host's translucent hover feedback over an opaque base. Using
81
+ an image layer leaves the reading plate opaque even in gallery/video mode. */
82
+ html[data-bc-active="true"]:not([data-bc-readable-surfaces="false"]) [data-plugin-panel] :is([data-plugin-package],[data-plugin-item]):hover{
83
+ background-image:linear-gradient(var(--dsw-alias-interactive-bg-hover),var(--dsw-alias-interactive-bg-hover));
84
+ }
50
85
  `;
51
86
  document.head.append(style);
52
87
  applyPreference();