dsh-watch-together 0.2.4 → 0.2.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/CHANGELOG.md +17 -0
- package/README.md +2 -1
- package/dsh.plugin.json +1 -1
- package/examples/floating-chat/glass_window_gpu.py +11 -2
- package/examples/floating-chat/window.py +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to **dsh-watch-together** are documented here.
|
|
4
4
|
This package starts its own version line at `0.0.7` — it is not a continuation of `dsh-video-storyboard`.
|
|
5
5
|
|
|
6
|
+
## [0.2.5] - 2026-11-02
|
|
7
|
+
|
|
8
|
+
> 0.2.4 里 PR #28 留下的两个 GPU 尾巴,作者当天补了 PR #29 收掉,外加气泡留白微调。
|
|
9
|
+
|
|
10
|
+
### Fixed — GPU 内框边缘(合 PR #29,作者 @ggfgfgf-on)
|
|
11
|
+
|
|
12
|
+
- **底部输入/发送框发黑**:内框边缘原来直接拿 `small` 的 render target 当 sampler,
|
|
13
|
+
贴边小框会采到边界外。现在单独拷一份 blur(1.45) 到 `edgeblur` FBO 再采样
|
|
14
|
+
(注释里写明「直接当 sampler 会触发驱动崩溃」,所以宁可多一次 copy)。
|
|
15
|
+
- **内框边缘的折射/扭曲丢了**:CPU 里 `edge_w=0` 是边缘(取折射样本)、`=1` 是中心
|
|
16
|
+
(取强模糊),Shader 里方向是反的。改成 `mix(edgep, strong, e)` 后恢复。
|
|
17
|
+
|
|
18
|
+
### Changed — 气泡留白
|
|
19
|
+
|
|
20
|
+
- 横向 14→18,纵向 `+4`→`+16`,正文按 `(bh - lines*ls)/2` 垂直居中。
|
|
21
|
+
字不再贴着气泡边,短消息也不会挤成一条。
|
|
22
|
+
|
|
6
23
|
## [0.2.4] - 2026-11-02
|
|
7
24
|
|
|
8
25
|
> 0.2.3 发出去 20 分钟就发了这个 —— 因为它带着一个肉眼可见的毛病:
|
package/README.md
CHANGED
|
@@ -599,7 +599,8 @@ node scripts/install-dev.mjs # 把本包同步进 DSH profile(副本
|
|
|
599
599
|
社区提的改动按 PR 记在这里(storyboard 那边的完整名单在 `dsh-video-storyboard/CREDITS.md`):
|
|
600
600
|
|
|
601
601
|
- [@ggfgfgf-on](https://github.com/ggfgfgf-on) —— 插件设置页([PR #11](https://github.com/SAOS-3624/dsh-watch-together/pull/11),设置直接渲染在插件详情页);
|
|
602
|
-
核心改走 runtime-ports、悬浮窗气泡与折叠重做([PR #22](https://github.com/SAOS-3624/dsh-watch-together/pull/22)
|
|
602
|
+
核心改走 runtime-ports、悬浮窗气泡与折叠重做([PR #22](https://github.com/SAOS-3624/dsh-watch-together/pull/22));
|
|
603
|
+
小框边缘模糊过渡、CPU 补色散与运动混合、麦克风回到玻璃帧合成([PR #28](https://github.com/SAOS-3624/dsh-watch-together/pull/28))
|
|
603
604
|
- [@DreamDLYY](https://github.com/DreamDLYY) —— 悬浮窗拖出屏幕后抓屏越界、日志每帧刷错、背景永久花屏的复现与修复([PR #23](https://github.com/SAOS-3624/dsh-watch-together/pull/23))
|
|
604
605
|
|
|
605
606
|
## 许可
|
package/dsh.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-watch-together",
|
|
3
3
|
"description": "Watch a video together with a text-only agent: follow the user's real playback position and hand over one segment at a time, just before the segment ends.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"entry": {
|
|
6
6
|
"name": "dsh-watch-together",
|
|
7
7
|
"inject": [
|
|
@@ -110,7 +110,9 @@ void main() {
|
|
|
110
110
|
ivec2 ep = clamp(ivec2(floor(ec + 0.5)), ivec2(0), ivec2(src_size) - 1);
|
|
111
111
|
// 边缘从小框自己的原始帧取,避免 warped 在贴边小框上采到黑边。
|
|
112
112
|
vec3 edgep = texelFetch(raw, ep, 0).rgb;
|
|
113
|
-
|
|
113
|
+
// CPU 里 edge_w=0 是边缘(取折射样本),=1 是中心(取强模糊);
|
|
114
|
+
// 这里方向必须一致,否则内框边缘反而没有扭曲。
|
|
115
|
+
vec3 patch = mix(edgep, strong, e);
|
|
114
116
|
frag = vec4(mix(base, patch, a), 1.0);
|
|
115
117
|
}
|
|
116
118
|
"""
|
|
@@ -374,10 +376,17 @@ class GPULens:
|
|
|
374
376
|
src_size=(float(bw), float(bh)))
|
|
375
377
|
p.vao.render(moderngl.TRIANGLES)
|
|
376
378
|
|
|
379
|
+
# 单独拷一份 blur(1.45) 给边缘采样;直接把 small 的 render target
|
|
380
|
+
# 当 sampler 会触发驱动崩溃。
|
|
381
|
+
edgeblur = self._fbo("edgeblur", (bw, bh))
|
|
382
|
+
edgeblur.use(); self.ctx.viewport = (0, 0, bw, bh)
|
|
383
|
+
small.color_attachments[0].use(0)
|
|
384
|
+
p = self.progs["final"]; p["tex"] = 0; p.vao.render(moderngl.TRIANGLES)
|
|
385
|
+
|
|
377
386
|
lens.use(); self.ctx.viewport = (0, 0, hw, hh)
|
|
378
387
|
warped.color_attachments[0].use(0)
|
|
379
388
|
strongw.color_attachments[0].use(1)
|
|
380
|
-
|
|
389
|
+
edgeblur.color_attachments[0].use(2)
|
|
381
390
|
self.texs["alpha"].use(3)
|
|
382
391
|
self.texs["edge"].use(4)
|
|
383
392
|
self.texs["coord"].use(5)
|
|
@@ -1255,7 +1255,7 @@ class LiveGlass:
|
|
|
1255
1255
|
left, right = base[0][0], base[0][2]
|
|
1256
1256
|
max_bubble = min(right - left, max(240, int((right - left) * 0.72)))
|
|
1257
1257
|
min_bubble = min(110, max_bubble)
|
|
1258
|
-
pad =
|
|
1258
|
+
pad = 18
|
|
1259
1259
|
body_font = f(11)
|
|
1260
1260
|
stamp_font = f(9)
|
|
1261
1261
|
fbody = tkfont.Font(root=self.root, font=body_font)
|
|
@@ -1279,7 +1279,8 @@ class LiveGlass:
|
|
|
1279
1279
|
content_max, body_avail)
|
|
1280
1280
|
inner = max([0] + [fbody.measure(line) for line in lines])
|
|
1281
1281
|
bw = min(max_bubble, max(min_bubble, inner + 2 * pad))
|
|
1282
|
-
|
|
1282
|
+
# 上下留白比原来多一圈;正文垂直居中,气泡不会贴着字。
|
|
1283
|
+
bh = min(body_avail, max(ls + 16, len(lines) * ls + 16))
|
|
1283
1284
|
by0 = y0 + stamp_h
|
|
1284
1285
|
by1 = min(y1, by0 + bh)
|
|
1285
1286
|
if is_user:
|
|
@@ -1295,7 +1296,8 @@ class LiveGlass:
|
|
|
1295
1296
|
infos.append({
|
|
1296
1297
|
"shape": shape, "is_user": is_user, "stamp": stamp,
|
|
1297
1298
|
"tx": tx, "ta": ta, "lines": lines,
|
|
1298
|
-
"body_font": body_font,
|
|
1299
|
+
"body_font": body_font,
|
|
1300
|
+
"ty": by0 + max(4, (bh - len(lines) * ls) // 2),
|
|
1299
1301
|
"stamp_y": y0, "ls": ls,
|
|
1300
1302
|
})
|
|
1301
1303
|
shapes.extend(base[4:])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-watch-together",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Watch a video together with a text-only agent: follow the user's real playback position, hand over one segment at a time just before it ends, and keep a single text stream of scripted lines, interjections and the user's replies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|