@nonamelego/dsh-catppuccin 0.6.3-beta.2 → 0.6.3
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 +11 -10
- package/lib/client.js +458 -701
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +23 -18
package/README.en.md
CHANGED
|
@@ -55,9 +55,9 @@ community DSH Desktop — both on the same `desktop` profile) and
|
|
|
55
55
|
glass skin on Web / Desktop, and the four official theme palettes auto-synced to the TUI.
|
|
56
56
|
|
|
57
57
|
It ships all four Catppuccin flavours — **Latte**, **Frappé**, **Macchiato**, **Mocha** —
|
|
58
|
-
remapping the whole interface to the matching palette, with a **
|
|
59
|
-
**Settings →
|
|
60
|
-
restored after restarts.
|
|
58
|
+
remapping the whole interface to the matching palette, with a **settings section of its own**
|
|
59
|
+
(**Settings → Catppuccin**: flavour, code highlighting, token overrides, glass, update check).
|
|
60
|
+
Your choice is persisted and restored after restarts.
|
|
61
61
|
|
|
62
62
|
It also includes an optional **glassmorphism** skin: the top bar, sidebar, composer,
|
|
63
63
|
trajectory view, chat bubbles and the new-session button become frosted-glass
|
|
@@ -221,8 +221,8 @@ installing, launch `dsh --profile dsh-tui` and pick the theme with `/theme` —
|
|
|
221
221
|
## Usage
|
|
222
222
|
|
|
223
223
|
1. Open the Web GUI (default `http://127.0.0.1:3080`), or the DSH Desktop app.
|
|
224
|
-
2.
|
|
225
|
-
3.
|
|
224
|
+
2. Open **Settings** and pick **Catppuccin** in the left nav (its own section, after the official ones).
|
|
225
|
+
3. Under **Theme**, pick a flavour:
|
|
226
226
|
**Latte** (light), **Frappé**, **Macchiato** or **Mocha** (dark).
|
|
227
227
|
4. Choosing **Follow system** reverts to the official theme — it restores the preference
|
|
228
228
|
you had before enabling Catppuccin (light / dark / follow system) instead of forcing a reset.
|
|
@@ -243,7 +243,7 @@ installing, launch `dsh --profile dsh-tui` and pick the theme with `/theme` —
|
|
|
243
243
|
|
|
244
244
|
### Glass skin
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
The **Glass** section lives on the **Settings → Catppuccin** page:
|
|
247
247
|
|
|
248
248
|
- **Master switch**: on — the top bar, sidebar, composer and trajectory view
|
|
249
249
|
become frosted glass; off — the UI reverts to stock instantly (no refresh needed).
|
|
@@ -265,7 +265,7 @@ Glass colours follow the active theme live; all settings persist across restarts
|
|
|
265
265
|
|
|
266
266
|
### Check for plugin updates
|
|
267
267
|
|
|
268
|
-
|
|
268
|
+
On the **Settings → Catppuccin** page, below **Glass**:
|
|
269
269
|
|
|
270
270
|
- Clicking **Check for updates** compares the latest npm version with the installed one:
|
|
271
271
|
up to date → shows the current version; newer → shows the new version plus a copyable
|
|
@@ -368,7 +368,7 @@ theme/glass actually reached the sidebar in that run), so no conclusion is drawn
|
|
|
368
368
|
|
|
369
369
|
| Item | Declaration |
|
|
370
370
|
|---|---|
|
|
371
|
-
| DSH | `>=0.1.
|
|
371
|
+
| DSH | `>=0.1.7-rc.1` (the settings page consumes the official `dsh-client-ui-primitives` `SegmentedControl`, which only exists from `0.1.7-alpha.1`; the legacy `settingsScope` code path is kept, but 0.1.5 / 0.1.6 hosts are no longer declared supported) |
|
|
372
372
|
| Node.js | `>=20` |
|
|
373
373
|
| Profile | `web` (the Web GUI and both desktop shells run the web UI and share this plugin); desktop profiles are named `desktop` |
|
|
374
374
|
| Verified exact version | `0.1.7-rc.1`: installed, started, persisted a setting to disk and restored it across a restart in a real profile ([evidence](docs/issue-15-settings-seam-0.1.7.md)); `0.1.7-rc.2`: boot-level e2e and live-page sampling of the glass layer (issues #16 / #17); `0.1.5-rc.3`, `0.1.7-alpha.1` and `0.1.7-alpha.2` are declared as the same seam |
|
|
@@ -426,7 +426,7 @@ link debugging; state-contract migration rules are in
|
|
|
426
426
|
knob persist the same way. Since 0.5.0, a legacy `catppuccin-state.json` is migrated
|
|
427
427
|
into the official settings once on first launch (the file is kept as a rollback copy).
|
|
428
428
|
- **Q: "How do I know if this plugin has a new version?"**
|
|
429
|
-
A: Settings →
|
|
429
|
+
A: Settings → Catppuccin → **Check for updates** compares against npm in one
|
|
430
430
|
click and gives a copyable upgrade command; or run
|
|
431
431
|
`dsh plugin --profile web update @nonamelego/dsh-catppuccin` manually (re-`add` the
|
|
432
432
|
latest version works too). **Desktop depends on which shell you use**: the community
|
package/README.md
CHANGED
|
@@ -52,8 +52,9 @@
|
|
|
52
52
|
Web / 桌面端做全界面换色与玻璃质感,TUI 端自动同步四套官方主题色板。
|
|
53
53
|
|
|
54
54
|
它内置 Catppuccin 的四个主题——**Latte**、**Frappé**、**Macchiato**、**Mocha**——
|
|
55
|
-
把整个界面的配色都换成对应的 Catppuccin
|
|
56
|
-
|
|
55
|
+
把整个界面的配色都换成对应的 Catppuccin 色板;并在设置里拥有**自己的独立分区**
|
|
56
|
+
(**设置 → Catppuccin**:风味、代码高亮、自定义覆盖、玻璃质感、更新检查都在这一页),
|
|
57
|
+
选择会自动保存、重启自动恢复。
|
|
57
58
|
|
|
58
59
|
同时内置一套可开关的**玻璃质感**(Glassmorphism)皮肤:顶栏、侧边栏、
|
|
59
60
|
输入框、轨迹视图、聊天气泡、新会话按钮都变成磨砂玻璃卡片,
|
|
@@ -193,8 +194,8 @@ dsh plugin --profile dsh-tui add https://github.com/NoNameLeGo/dsh-catppuccin-th
|
|
|
193
194
|
## 使用
|
|
194
195
|
|
|
195
196
|
1. 打开 Web GUI(默认 `http://127.0.0.1:3080`);在 [DSH Desktop](https://github.com/anywhere-labs/dsh-desktop) 中则直接打开桌面应用即可。
|
|
196
|
-
2.
|
|
197
|
-
3. 在
|
|
197
|
+
2. 打开 **设置**,在左侧导航里点 **Catppuccin**(官方各节之后的独立分区)。
|
|
198
|
+
3. 在 **主题** 区域选择风味:
|
|
198
199
|
**Latte**(浅色)、**Frappé**、**Macchiato** 或 **Mocha**(深色)。
|
|
199
200
|
4. 选择 **跟随系统** 则回退到官方主题——会还原你启用 Catppuccin 之前
|
|
200
201
|
的官方偏好(浅色 / 深色 / 跟随系统),而不是强制重置。
|
|
@@ -203,7 +204,7 @@ dsh plugin --profile dsh-tui add https://github.com/NoNameLeGo/dsh-catppuccin-th
|
|
|
203
204
|
> (Catppuccin 主题 / 玻璃质感 / 检查更新 / 反馈与支持)——两处读写的是同一份偏好,改哪边都一样。
|
|
204
205
|
> 该区域由宿主(≥ `0.2.0-rc.2` 的插件详情页)提供,更旧的版本上没有。
|
|
205
206
|
|
|
206
|
-
###
|
|
207
|
+
### 代码高亮与自定义覆盖
|
|
207
208
|
|
|
208
209
|
- **代码高亮风格**:默认 / **注释斜体**(italic-comments)——只影响代码块与 diff 的 shiki 高亮配色。
|
|
209
210
|
- **自定义覆盖**(折叠区,按钮上显示已有条数):按「`--dsw-* 变量: 值`」逐条覆盖单个 token,
|
|
@@ -212,7 +213,7 @@ dsh plugin --profile dsh-tui add https://github.com/NoNameLeGo/dsh-catppuccin-th
|
|
|
212
213
|
|
|
213
214
|
### 玻璃质感
|
|
214
215
|
|
|
215
|
-
在 **设置 →
|
|
216
|
+
在 **设置 → Catppuccin** 页里找到 **玻璃质感** 区域:
|
|
216
217
|
|
|
217
218
|
- **总开关**:开启后顶栏、侧边栏、输入框、轨迹视图变为磨砂玻璃;
|
|
218
219
|
关闭即完全还原原生界面(无需刷新)。
|
|
@@ -234,7 +235,7 @@ dsh plugin --profile dsh-tui add https://github.com/NoNameLeGo/dsh-catppuccin-th
|
|
|
234
235
|
|
|
235
236
|
### 检查 Catppuccin 插件更新
|
|
236
237
|
|
|
237
|
-
在 **设置 →
|
|
238
|
+
在 **设置 → Catppuccin** 页的 **玻璃质感** 下方找到 **检查更新** 区域:
|
|
238
239
|
|
|
239
240
|
- 点击 **检查更新** 即对比 npm 上的最新版与当前版本:已是最新 → 显示当前
|
|
240
241
|
版本号;发现新版 → 显示新版本号并给出可复制的升级命令(命令中的 profile
|
|
@@ -324,10 +325,10 @@ console.table({ backdropFilter: cs.backdropFilter, background: cs.backgroundColo
|
|
|
324
325
|
|
|
325
326
|
| 项 | 声明 |
|
|
326
327
|
|---|---|
|
|
327
|
-
| DSH | `>=0.1.
|
|
328
|
+
| DSH | `>=0.1.7-rc.1`(设置页消费官方 `dsh-client-ui-primitives` 的 `SegmentedControl`,该导出自 `0.1.7-alpha.1` 起才有;旧的 `settingsScope` 通道代码保留,但 0.1.5 / 0.1.6 宿主不再声明支持) |
|
|
328
329
|
| Node.js | `>=20` |
|
|
329
330
|
| Profile | `web`(Web GUI 与两个桌面壳都启动 web 界面,共用本插件);桌面端默认 profile 名为 `desktop`(已声明) |
|
|
330
|
-
| 已验证的具体版本 | `0.2.0-rc.2`:官方桌面壳自带运行时的启动级 e2e(19/19)、真机桌面窗口像素与标题栏取色链路、`configForms` 落盘([审计](docs/desktop-0.2.0-adaptation-audit.md));`0.1.7-rc.1`:真实 profile 上完成安装、启动、改设置落盘与重启恢复([证据](docs/issue-15-settings-seam-0.1.7.md));`0.1.7-rc.2`:启动级 e2e 与玻璃层的真页采样(issue #16 / #17);`0.1.5-rc.1`:按 CI 口径复跑的启动级 e2e;`0.1.5-rc.3`、`0.1.7-alpha.1`、`0.1.7-alpha.2` 为同一 seam 的声明 |
|
|
331
|
+
| 已验证的具体版本 | `0.2.1-rc.2`:官方桌面壳真机验收——插件正常启动、token 逐项生效、玻璃配方完整,**改设置真写回 `cordis.patch.yml`(修复前不写)**、重启后从文档采纳回来([审计](docs/desktop-0.2.1-adaptation-audit.md));`0.2.0-rc.2`:官方桌面壳自带运行时的启动级 e2e(19/19)、真机桌面窗口像素与标题栏取色链路、`configForms` 落盘([审计](docs/desktop-0.2.0-adaptation-audit.md));`0.1.7-rc.1`:真实 profile 上完成安装、启动、改设置落盘与重启恢复([证据](docs/issue-15-settings-seam-0.1.7.md));`0.1.7-rc.2`:启动级 e2e 与玻璃层的真页采样(issue #16 / #17);`0.1.5-rc.1`:按 CI 口径复跑的启动级 e2e;`0.1.5-rc.3`、`0.1.7-alpha.1`、`0.1.7-alpha.2` 为同一 seam 的声明 |
|
|
331
332
|
|
|
332
333
|
以上也是 `package.json` 里 `dsh.compatibility`(`dsh` / `dshReleases` / `dshOperations`)的机器可读版本。
|
|
333
334
|
色彩覆盖以 `dsh-v0.2.0-rc.2` 的 `design-platform.css` 为基线:每方案 190 个 `--dsw-*` token(static 77 /
|
|
@@ -387,7 +388,7 @@ CHANGELOG 草稿由 `pnpm changelog:gen` 从 conventional 提交里产出。
|
|
|
387
388
|
就会出现。逐项实测读数与上游代码坐标见
|
|
388
389
|
[docs/issue-18-narrow-sidebar.md](docs/issue-18-narrow-sidebar.md)。
|
|
389
390
|
- Q: **_"怎么知道这个插件有没有新版本?"_**
|
|
390
|
-
A: 设置 →
|
|
391
|
+
A: 设置 → Catppuccin → **检查更新** 一键检测本插件在 npm 上的最新版本,
|
|
391
392
|
发现新版会给出可复制的升级命令;也可以随时手动执行
|
|
392
393
|
`dsh plugin --profile web update @nonamelego/dsh-catppuccin`
|
|
393
394
|
(或重新 `add` 最新版)。
|