@nimoxie/dsh-ui-tweaks 0.1.8 → 0.2.1
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/DEVELOPMENT.md +175 -116
- package/LICENSE +21 -21
- package/README.md +120 -150
- package/cordis.patch.yml +7 -7
- package/lib/client.js +931 -12
- package/lib/window-helper.cs +195 -195
- package/lib/window-helper.ps1 +276 -276
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,150 +1,120 @@
|
|
|
1
|
-
# dsh-ui-tweaks
|
|
2
|
-
|
|
3
|
-
给 DSH(DeepSeek Harness)的 Web UI 的一批界面微调:装上即生效,无需配置。
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## 功能
|
|
8
|
-
|
|
9
|
-
**宽表格越界修复**
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
**对话区左侧滚动条**
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
dsh plugin --profile web remove <PluginName>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
dsh
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
dsh
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
# @nimoxie/dsh-ui-tweaks:界面优化调整
|
|
123
|
-
dsh plugin --profile web add @nimoxie/dsh-ui-tweaks
|
|
124
|
-
|
|
125
|
-
# cc-safety-net:危险命令与密钥防护
|
|
126
|
-
dsh plugin --profile web add cc-safety-net
|
|
127
|
-
|
|
128
|
-
# dsh-context:上下文管理
|
|
129
|
-
dsh plugin --profile web add dsh-context
|
|
130
|
-
|
|
131
|
-
# dsh-cost-meter:会话费用统计
|
|
132
|
-
dsh plugin --profile web add dsh-cost-meter
|
|
133
|
-
|
|
134
|
-
# dsh-ego-browser:模拟浏览器点击
|
|
135
|
-
dsh plugin --profile web add dsh-ego-browser
|
|
136
|
-
|
|
137
|
-
# dsh-ops:bash / PowerShell 7 与 Rust 高性能工具
|
|
138
|
-
dsh plugin --profile web add dsh-ops
|
|
139
|
-
|
|
140
|
-
# dsh-whale-widget:右下角小鲸鱼挂件
|
|
141
|
-
dsh plugin --profile web add dsh-whale-widget
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## 许可
|
|
145
|
-
|
|
146
|
-
MIT
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
想自己改这个插件、或者想了解它在内部怎么实现的,见 [DEVELOPMENT.md](./DEVELOPMENT.md)。
|
|
1
|
+
# dsh-ui-tweaks
|
|
2
|
+
|
|
3
|
+
给 DSH(DeepSeek Harness)的 Web UI 的一批界面微调:装上即生效,无需配置。
|
|
4
|
+
|
|
5
|
+
官方界面有几处用得难受的地方:宽表格会撑出对话区右沿、滚动条贴在屏幕最右端要横跨半屏去够、Windows 关闭「动画效果」时前端动画被系统设置一并关掉、会话释放后回合尾的改动卡会消失、插件版本更新只能去插件管理页挨个看。这个插件把它们一次性修掉,另附桌面客户端的窗口记忆。
|
|
6
|
+
|
|
7
|
+
## 功能
|
|
8
|
+
|
|
9
|
+
**宽表格越界修复**
|
|
10
|
+
- ≥4 列的宽表格不再撑出对话区,收敛回正文列并支持横向滚动。
|
|
11
|
+
|
|
12
|
+
**对话区左侧滚动条**
|
|
13
|
+
- 在右侧宽度调整条的左边放一条自绘滚动条:拖拽、点轨道翻页、滚轮手感与原生一致,主题跟随明暗,只在会话页出现。
|
|
14
|
+
|
|
15
|
+
**回合尾改动卡**
|
|
16
|
+
- 官方「本回合改动」卡在会话释放后(切走会话、重启客户端、重开旧会话)原本会消失;本插件用会话日志里的文件改动数据补上,卡片仍由**官方组件原样渲染**——卡头、统计、4 行折叠、hover 预览、右侧「改动审查」都与活会话里一致。
|
|
17
|
+
- 官方本来就不会画的两种情形(关着「显示编码工具视图」、该回合没有官方改动记录)才由插件画一张同款,两种情形都不会与官方卡重复。
|
|
18
|
+
- 口径:只含**文件工具**(写/改文件)造成的改动;数字按回合首末的**净变化**计。
|
|
19
|
+
|
|
20
|
+
**动画修复**
|
|
21
|
+
- Windows 关闭「动画效果」时,清除因此失效的界面动画;web 与桌面客户端都生效。
|
|
22
|
+
|
|
23
|
+
**插件更新检查**
|
|
24
|
+
- 插件管理页「已安装」标题行右侧多一组按钮:检查更新、逐个更新、全部更新与取消(不检查 dsh 本体与官方 `@deepseek-ai` 插件)。
|
|
25
|
+
- 未过 pnpm 发布冷静期的新版本标「冷静期中」并给出可更新时间,到点自动恢复;确需立刻安装可在详情里走「强制更新」。声明了更高 DSH 版本的标「DSH 不符」。两者默认都不给装。
|
|
26
|
+
- 更新成功的插件会在顶部提示「重启客户端后生效」;「立即重启」会先告诉你有没有会话在跑,**任何情况都要你点确认**才会执行。
|
|
27
|
+
- 面板与弹窗支持纯键盘操作(Tab / 回车 / 空格 / Esc),焦点环与官方控件一致。
|
|
28
|
+
|
|
29
|
+
**窗口记忆(仅桌面客户端)**
|
|
30
|
+
- 记住上次的窗口大小、位置与最大化状态,下次启动自动还原;不修改官方任何文件,卸载即恢复。
|
|
31
|
+
- 状态存在 profile 的 `ui-tweaks/window-state.json`,删掉即重置。
|
|
32
|
+
|
|
33
|
+
## 安装
|
|
34
|
+
|
|
35
|
+
浏览器版(`web`):
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
dsh plugin --profile web add @nimoxie/dsh-ui-tweaks
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
装完重启服务(关掉再 `dsh web`)。
|
|
42
|
+
|
|
43
|
+
桌面客户端:桌面 profile **保留给客户端**,PATH 上那个 `dsh`(npm 全局装的)会被拒。但客户端**自带的那份 CLI 可以** —— 它就在安装目录里,和「插件管理」页走的是同一套实现:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
# Windows 桌面端;<安装目录> 形如 E:\tools\DeepSeek Harness
|
|
47
|
+
"<安装目录>\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @nimoxie/dsh-ui-tweaks
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
不想敲命令,也可以照旧在客户端「插件管理」页添加包名 `@nimoxie/dsh-ui-tweaks`,重启客户端生效。
|
|
51
|
+
|
|
52
|
+
卸载(CLI 可管理的 `web` 环境):
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
dsh plugin --profile web remove @nimoxie/dsh-ui-tweaks
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
别人也可以从 GitHub 或本地目录装(开发用):
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
dsh plugin --profile web add github:NimoXie15/dsh-ui-tweaks
|
|
62
|
+
dsh plugin --profile web add link:/absolute/path/to/dsh-ui-tweaks
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
> **要求**:dsh `>= 0.2.0-rc.1`(需要 `remote.pluginManager` / `remote.pluginInventory` 接口)。
|
|
66
|
+
>
|
|
67
|
+
> 升级插件后如果界面没变化,按 **Ctrl+Shift+R** 强刷一次(浏览器可能还在用缓存的旧版本)。
|
|
68
|
+
|
|
69
|
+
## 已知限制
|
|
70
|
+
|
|
71
|
+
- 非 npm 来源的插件没有可比的 registry 版本,直接跳过比对:`link:` / `file:` 本地路径标「本地链接」,`git:` / `github:` / `http` 直装标「Git 直装」(例:`github:Fisfzy/dsh-ego-browser` 装的是仓库源码,与 npm 上的同名包不是一回事)。
|
|
72
|
+
- 更新一个**已经装过**的插件时会先卸载再装回:DSH 安装接口在有热重载时不允许原地覆盖已装的包。中途失败会自动回滚到原版本,失败原因(pnpm 输出与日志位置)写在该行,点它可重试。
|
|
73
|
+
- 桌面端点「重启 dsh」后 dsh 会先退出,再由客户端弹出官方的「应用无法启动或已意外停止」对话框,**在那里点「重启」才真正拉起来**(也可手动退出后重开)。
|
|
74
|
+
- 取消只作用于你点的那一项,后续排队项会继续装;面板比对走 npm 官方 registry,安装走你本机 pnpm 配置的源(如 npmmirror 镜像),镜像尚未同步的新版本会出现「面板说有新版、装时报找不到版本」,稍后重试即可。
|
|
75
|
+
- 「本回合改动」卡只含文件工具的改动,且按官方净变化口径计数;「官方那侧会不会画」的判断结果**只在本次连接内有效**(刷新页面或重连后重新判断),用于避免宿主恢复数据后出现双份卡。
|
|
76
|
+
- 「DSH 不符」只在能确认版本时生效:本机 DSH 版本读不到、或新版写的是 `^` / `~` 这类无法判定的范围,就不拦(宁可漏拦,不误伤正常更新)。
|
|
77
|
+
- 会话在用「自动审查」时,更新面板顶部会有琥珀色提醒:该模式下装/更新插件可能失败,工具调用也可能被审查拦掉(`503` / `429`)。按提醒切成「工作区内修改」,装完再切回即可。本插件**只提示,不改动你的权限设置**。
|
|
78
|
+
- 与启动器 dsh-web-shell 的分工:界面增强已由本插件接管;dsh-web-shell 的「检查更新」按钮只负责 **dsh 本体**的比对与升级提示。
|
|
79
|
+
- 窗口记忆的归位发生在窗口显示后约 0.2~1 秒内,会有一帧跳变(官方客户端在插件加载之前就把窗口显示出来了);窗口最小化不会中断记忆。
|
|
80
|
+
- 个别插件(如社区插件管理页扩展)自带单独的「检查更新」入口,与本插件的检查互不关联,结果可能不同。
|
|
81
|
+
- **360 提示「PowerShell 执行攻击命令」是误报**:桌面端的窗口记忆需要在 dsh 进程外跑一个隐藏的 PowerShell 小助手,360 对「非系统程序创建 powershell.exe」一律按高危拦截,选「允许」即可。dsh 官方桌面版每次启动自己也会创建隐藏 PowerShell,所以关掉窗口记忆也消不掉这个弹窗。
|
|
82
|
+
|
|
83
|
+
## 本人常用插件(可选)
|
|
84
|
+
|
|
85
|
+
> 本插件不会自动安装任何其他插件,插件也不属于必装项——不装同样能正常使用上述全部功能。
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
# 浏览器版
|
|
89
|
+
dsh plugin --profile web add <PluginName>
|
|
90
|
+
dsh plugin --profile web remove <PluginName>
|
|
91
|
+
dsh --profile web --dump-config | findstr /i <PluginName子串> # 查看
|
|
92
|
+
|
|
93
|
+
# 桌面客户端(PATH 上的 dsh 装不了,用客户端自带的那份)
|
|
94
|
+
"<安装目录>\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add <PluginName>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
也可以直接在客户端「插件管理」中安装、卸载和查看。常用插件(web 与桌面端都能用):
|
|
98
|
+
|
|
99
|
+
| 插件 | 用途 |
|
|
100
|
+
| --- | --- |
|
|
101
|
+
| `@changfenhuang/dsh-genui` | 生成式消息回复 |
|
|
102
|
+
| `@linxin666/dsh-session-archive` | 会话归档与批量清理 |
|
|
103
|
+
| `@liustack/modsearch` | 联网搜索 |
|
|
104
|
+
| `@michengai/dsh-skills-manager` | 技能加载与管理 |
|
|
105
|
+
| `@nimoxie/dsh-model-organizer` | 模型显示管理 |
|
|
106
|
+
| `@nimoxie/dsh-ui-tweaks` | 界面优化调整(本插件) |
|
|
107
|
+
| `cc-safety-net` | 危险命令与密钥防护 |
|
|
108
|
+
| `dsh-context` | 上下文管理 |
|
|
109
|
+
| `dsh-cost-meter` | 会话费用统计 |
|
|
110
|
+
| `dsh-ego-browser` | 模拟浏览器点击 |
|
|
111
|
+
| `dsh-ops` | bash / PowerShell 7 与 Rust 高性能工具 |
|
|
112
|
+
| `dsh-whale-widget` | 右下角小鲸鱼挂件 |
|
|
113
|
+
|
|
114
|
+
## 许可
|
|
115
|
+
|
|
116
|
+
MIT
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
想自己改这个插件、或者想了解它在内部怎么实现的,见 [DEVELOPMENT.md](./DEVELOPMENT.md)。
|
package/cordis.patch.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# dsh-ui-tweaks bundle patch: one host row over the web profile.
|
|
2
|
-
# The row name resolves from the profile's own node_modules where
|
|
3
|
-
# `dsh plugin --profile web add <path>` installed this package.
|
|
4
|
-
# Scoped 包名的 name 必须写全(同 @linxin666 系插件),loader 按它解析 node_modules。
|
|
5
|
-
- insert:
|
|
6
|
-
- id: ui-tweaks
|
|
7
|
-
name: '@nimoxie/dsh-ui-tweaks'
|
|
1
|
+
# dsh-ui-tweaks bundle patch: one host row over the web profile.
|
|
2
|
+
# The row name resolves from the profile's own node_modules where
|
|
3
|
+
# `dsh plugin --profile web add <path>` installed this package.
|
|
4
|
+
# Scoped 包名的 name 必须写全(同 @linxin666 系插件),loader 按它解析 node_modules。
|
|
5
|
+
- insert:
|
|
6
|
+
- id: ui-tweaks
|
|
7
|
+
name: '@nimoxie/dsh-ui-tweaks'
|