@nonamelego/dsh-catppuccin 0.3.0 → 0.4.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/README.md +31 -5
- package/cordis.patch.yml +10 -0
- package/lib/client.js +1 -6
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/tui-themes.js +80 -0
- package/package.json +5 -2
- package/themes/catppuccin-frappe.json +102 -0
- package/themes/catppuccin-latte.json +102 -0
- package/themes/catppuccin-macchiato.json +102 -0
- package/themes/catppuccin-mocha.json +102 -0
package/README.md
CHANGED
|
@@ -33,8 +33,10 @@
|
|
|
33
33
|
|
|
34
34
|
## 简介
|
|
35
35
|
|
|
36
|
-
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
|
|
37
|
-
|
|
36
|
+
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的
|
|
37
|
+
[Catppuccin](https://github.com/catppuccin/catppuccin) 主题插件——一个包同时适配
|
|
38
|
+
**Web GUI**(`dsh web`)、**DSH Desktop** 与 **dsh-TUI** 终端:Web / 桌面端做全界面换色与玻璃质感,
|
|
39
|
+
TUI 端自动同步四套官方主题色板。
|
|
38
40
|
|
|
39
41
|
它内置 Catppuccin 的四个主题——**Latte**、**Frappé**、**Macchiato**、**Mocha**——
|
|
40
42
|
把整个界面的配色都换成对应的 Catppuccin 色板;并在 **设置 → 常规 → 外观**
|
|
@@ -62,6 +64,7 @@ Catppuccin 主题。
|
|
|
62
64
|
纯色背景跟随主题底色——内容滚入视口边缘时柔化穿过,层次更立体
|
|
63
65
|
- 🎨 玻璃配色取自当前主题的 token(color-mix 自动跟随四个 Catppuccin 色板)
|
|
64
66
|
- 🔄 **检查 Catppuccin 插件更新**:设置页一键检测本插件(dsh-catppuccin)在 npm 上的最新版本,发现新版直接给出可复制的升级命令
|
|
67
|
+
- 💻 **dsh-TUI 终端主题**:一条安装命令装进 dsh-TUI,四套主题自动同步到 `~/.dsh-tui/themes/`,见[安装 · dsh-TUI](#dsh-tui-终端版主题)
|
|
65
68
|
|
|
66
69
|
## 预览
|
|
67
70
|
|
|
@@ -146,6 +149,30 @@ pnpm --dir C:\Users\LeGo\.dsh\profiles\web add link:D:\Vibe-Coding\dsh-catppucci
|
|
|
146
149
|
重启 `dsh web` 即可。在 [DSH Desktop](https://github.com/anywhere-labs/deepseek-harness-desktop) 中使用时,把上面的路径换成桌面 profile
|
|
147
150
|
(默认 `desktop`,位于 `~/.dsh/profiles/desktop`),装完重启 **[DSH Desktop](https://github.com/anywhere-labs/deepseek-harness-desktop)** 即可。
|
|
148
151
|
|
|
152
|
+
### dsh-TUI(终端版)主题
|
|
153
|
+
|
|
154
|
+
与 Web GUI 插件同一个包。用标准的插件安装命令装进 dsh-tui profile:
|
|
155
|
+
|
|
156
|
+
```sh
|
|
157
|
+
dsh plugin --profile dsh-tui add @nonamelego/dsh-catppuccin
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
从仓库安装同理(npm 版尚未发版时可用 git 形式,效果一致):
|
|
161
|
+
|
|
162
|
+
```sh
|
|
163
|
+
dsh plugin --profile dsh-tui add https://github.com/NoNameLeGo/dsh-catppuccin-theme
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
包里带一个只做主题同步的小插件行(`dsh-catppuccin-tui-themes`,不依赖任何服务):dsh-TUI 启动时自动把四套主题 JSON 同步到 `~/.dsh-tui/themes/`,之后升级包即同步新版配色。装完启动 `dsh --profile dsh-tui`,在 dsh-TUI 里用 `/theme` 选择 **Catppuccin Latte / Frappé / Macchiato / Mocha**,或直接 `/theme catppuccin-mocha` 切换(选择会持久化,下次启动自动恢复)。
|
|
167
|
+
|
|
168
|
+
> 💡 已经为 Web GUI 装过本插件、同时也用 dsh-TUI 的话:不用重复安装——Web 端每次启动都会自动同步主题到 `~/.dsh-tui/themes/`(仅当该目录已存在,纯 Web 用户不受影响)。
|
|
169
|
+
|
|
170
|
+
> 📁 不想在 dsh-tui profile 里装包的话,也可以手动复制:从仓库克隆后把 `themes/*.json` 拷进 `~/.dsh-tui/themes/`(Windows:`%USERPROFILE%\.dsh-tui\themes\`),效果相同,只是不随版本自动更新。
|
|
171
|
+
|
|
172
|
+
> ⚠️ `catppuccin-*.json` 这几个文件名归本插件所有,同步时会被覆盖;想自定义请复制一份改别的名字,其他主题文件不受影响。
|
|
173
|
+
|
|
174
|
+
> 💡 TUI 主题只管 TUI 内部配色,终端背景由你的终端决定——建议终端本身也配上对应风味的 Catppuccin(见 [Catppuccin 官方 ports 列表](https://github.com/catppuccin/catppuccin#-ports)),整体观感最一致。
|
|
175
|
+
|
|
149
176
|
## 使用
|
|
150
177
|
|
|
151
178
|
1. 打开 Web GUI(默认 `http://127.0.0.1:3080`);在 [DSH Desktop](https://github.com/anywhere-labs/deepseek-harness-desktop) 中则直接打开桌面应用即可。
|
|
@@ -181,10 +208,9 @@ localStorage 只作为即时缓存与多标签页同步——**DSH Desktop** 每
|
|
|
181
208
|
|
|
182
209
|
在 **设置 → 常规** 的 **玻璃质感** 正下方找到 **检查 Catppuccin 插件更新** 行:
|
|
183
210
|
|
|
184
|
-
- 打开设置页会自动静默检查一次(结果就地显示),也可以随时点 **检查更新**
|
|
185
|
-
手动复查;宿主侧对检查结果缓存 5 分钟,反复打开设置不会重复请求 registry。
|
|
186
211
|
- 点击 **检查更新**,插件宿主会查询 npm registry 上本插件(`dsh-catppuccin`)
|
|
187
|
-
|
|
212
|
+
的最新版本,并与当前安装版本比较(含预发布版本的语义化版本比较);
|
|
213
|
+
宿主侧对检查结果缓存 5 分钟,短时间内反复点击不会重复请求 registry。
|
|
188
214
|
- 已是最新 → 显示当前版本号;发现新版 → 显示新版本号,并给出可复制的
|
|
189
215
|
升级命令。命令中的 profile 名由宿主**自动探测**:优先取当前进程的
|
|
190
216
|
`--profile` 参数,否则扫描 `~/.dsh/profiles/*` 找到实际安装了本插件的
|
package/cordis.patch.yml
CHANGED
|
@@ -4,3 +4,13 @@
|
|
|
4
4
|
- insert:
|
|
5
5
|
- id: dsh-catppuccin
|
|
6
6
|
name: '@nonamelego/dsh-catppuccin'
|
|
7
|
+
# TUI theme sync: idempotently copies the four Catppuccin theme JSONs into
|
|
8
|
+
# ~/.dsh-tui/themes/ on activation. No inject, so it activates in EVERY
|
|
9
|
+
# profile — in a dsh-tui profile this is what makes the one-command
|
|
10
|
+
# install work (dsh-TUI reads themes only from that directory; there is
|
|
11
|
+
# no registration API); in a web/desktop profile it keeps themes in sync
|
|
12
|
+
# for users who also run dsh-TUI; with no ~/.dsh-tui on disk it is a
|
|
13
|
+
# strict no-op. The main row above stays pending on webServer there,
|
|
14
|
+
# same benign state as headless profiles.
|
|
15
|
+
- id: dsh-catppuccin-tui-themes
|
|
16
|
+
name: '@nonamelego/dsh-catppuccin/tui-themes'
|
package/lib/client.js
CHANGED
|
@@ -1699,9 +1699,7 @@ window.__ModuleLoader__.load({
|
|
|
1699
1699
|
}
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Render the update-check row: title, description, a check button, and the
|
|
1702
|
-
* verdict once checked.
|
|
1703
|
-
* mounts (the Host caches the verdict for 5 minutes, so reopening settings
|
|
1704
|
-
* does not re-hit the registry).
|
|
1702
|
+
* verdict once checked.
|
|
1705
1703
|
* @param props - composed slot props.
|
|
1706
1704
|
* @returns the row element tree.
|
|
1707
1705
|
*/
|
|
@@ -1724,9 +1722,6 @@ window.__ModuleLoader__.load({
|
|
|
1724
1722
|
setPhase("done");
|
|
1725
1723
|
}
|
|
1726
1724
|
};
|
|
1727
|
-
(0, react.useEffect)(() => {
|
|
1728
|
-
runCheck();
|
|
1729
|
-
}, []);
|
|
1730
1725
|
const buttonStyle = {
|
|
1731
1726
|
display: "inline-flex",
|
|
1732
1727
|
alignItems: "center",
|