dsh-ui-tweaks 0.19.0 → 0.19.2
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.en.md +9 -9
- package/README.md +8 -8
- package/lib/client.js +79 -79
- package/lib/client.js.map +2 -2
- package/lib/types/client/effort.d.ts +10 -7
- package/lib/types/client/effort.d.ts.map +1 -1
- package/lib/types/client/icons.d.ts +5 -1
- package/lib/types/client/icons.d.ts.map +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/package.json +142 -142
package/README.en.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# dsh-ui-tweaks
|
|
2
2
|
|
|
3
|
-
> **Dependency**: currently targets **DSH v0.2.0-rc.
|
|
3
|
+
> **Dependency**: currently targets **DSH v0.2.0-rc.2**.
|
|
4
4
|
|
|
5
5
|
A [DeepSeek Harness](https://deepseek-harness.github.io/deepseek-harness/) (DSH) web plugin that live-tunes the conversation UI from the Settings panel.
|
|
6
6
|
|
|
@@ -61,10 +61,10 @@ Settings entry: **Settings → UI Tweaks**.
|
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
63
|
# from npm (recommended, prebuilt)
|
|
64
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
64
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add dsh-ui-tweaks
|
|
65
65
|
|
|
66
66
|
# from GitHub (source; built on install by `prepare`)
|
|
67
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
67
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add github:wlj521/dsh-ui-tweaks
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
> **The GitHub path builds locally**: `lib/` is a build artifact and is not tracked; it is produced by `prepare` at install time. Since pnpm 10.26, `prepare` of git-hosted dependencies is **blocked by default** (supply-chain hardening), so allow it in the profile's `pnpm-workspace.yaml` first — otherwise the install ships no `lib/` and the plugin fails to load:
|
|
@@ -80,12 +80,12 @@ The package spec after `add` is forwarded to pnpm verbatim, so versions can be
|
|
|
80
80
|
pinned — `@version` for the npm package, `#tag` for the GitHub source:
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
84
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
83
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add dsh-ui-tweaks@0.19.1 # pin the npm version
|
|
84
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add github:wlj521/dsh-ui-tweaks#v0.19.1 # pin a git tag
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
Restart DSH
|
|
88
|
-
are scanned at process start).
|
|
87
|
+
Restart the DSH desktop app once after installing (bundle
|
|
88
|
+
plugins are scanned at process start).
|
|
89
89
|
|
|
90
90
|
> If pnpm reports symlink/hoist errors, set `nodeLinker: hoisted` in the
|
|
91
91
|
> profile's `pnpm-workspace.yaml`.
|
|
@@ -101,8 +101,8 @@ pnpm typecheck
|
|
|
101
101
|
Load against a running DSH with an overlay, or install as a bundle:
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
npx -y @deepseek-ai/dsh
|
|
105
|
-
|
|
104
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add . # bundle install from this checkout
|
|
105
|
+
# dev overlay: edit the desktop profile's cordis.patch.yml ($DSH_HOME/profiles/desktop/cordis.patch.yml) directly — DSH hot-reloads it
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
## How it works
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# dsh-ui-tweaks
|
|
2
2
|
|
|
3
|
-
> **依赖版本**:当前依赖 **DSH v0.2.0-rc.
|
|
3
|
+
> **依赖版本**:当前依赖 **DSH v0.2.0-rc.2**。
|
|
4
4
|
|
|
5
5
|
[DeepSeek Harness](https://deepseek-harness.github.io/deepseek-harness/)(DSH)Web UI 插件:在设置面板中实时调整对话界面——代码字号、**主题皮肤**(简约 / 荧光海报)、**时间线切换**(原生回合导航轨 / 经典网页时间线)、**GitBar**(会话头部的分支胶囊 + 右侧边栏里的代码差异标签页),可开关的**归档管理**(设置中的「归档」页面:查看、恢复或彻底删除已归档会话),可开关的**任务提醒**(会话完成或需要交互时,通过标签页标题闪烁 / 系统通知 / 提示音把你唤回来),以及**缓存命中率两位小数**(把输入框下方统计条的缓存命中百分比改写为精确值)。
|
|
6
6
|
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
66
|
# 方式一:从 npm 安装(推荐,预构建产物,一条命令装好)
|
|
67
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
67
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add dsh-ui-tweaks
|
|
68
68
|
|
|
69
69
|
# 方式二:从 GitHub 仓库安装(源码,安装时由 prepare 自动构建)
|
|
70
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
70
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add github:wlj521/dsh-ui-tweaks
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
> **方式二需要放行构建脚本**:`lib/` 不在仓库里(构建产物),靠 `prepare` 在安装时生成;而 pnpm ≥ 10.26 出于供应链安全**默认不允许 git 依赖执行 `prepare`**。先在 profile 的 `pnpm-workspace.yaml` 里放行,否则装完没有 `lib/`,插件加载即失败:
|
|
@@ -82,11 +82,11 @@ npx -y @deepseek-ai/dsh plugin --profile web add github:wlj521/dsh-ui-tweaks
|
|
|
82
82
|
`add` 后面的包说明会**原样转发给 pnpm**,因此可以指定版本——npm 包用 `@版本号`,GitHub 源码用 `#tag`:
|
|
83
83
|
|
|
84
84
|
```bash
|
|
85
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
86
|
-
npx -y @deepseek-ai/dsh plugin --profile
|
|
85
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add dsh-ui-tweaks@0.19.1 # 锁定 npm 版本
|
|
86
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add github:wlj521/dsh-ui-tweaks#v0.19.1 # 锁定 git tag
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
安装完成后**重启一次
|
|
89
|
+
安装完成后**重启一次 DSH 桌面端**(bundle 插件在进程启动时扫描)。
|
|
90
90
|
|
|
91
91
|
> 若 pnpm 报符号链接/hoist 相关错误,可在 profile 的 `pnpm-workspace.yaml` 中设置 `nodeLinker: hoisted`。
|
|
92
92
|
|
|
@@ -101,8 +101,8 @@ pnpm typecheck
|
|
|
101
101
|
本地加载(覆盖层)或作为 bundle 安装:
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
npx -y @deepseek-ai/dsh
|
|
105
|
-
|
|
104
|
+
npx -y @deepseek-ai/dsh plugin --profile desktop add . # 从本目录作为 bundle 安装
|
|
105
|
+
# 开发覆盖层:直接编辑桌面端 profile 的 cordis.patch.yml($DSH_HOME/profiles/desktop/cordis.patch.yml),DSH 会热重载
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
## 工作原理
|